﻿@{
	ViewBag.Title = @Resources.Menu_Registration;
}
<table cellpadding="0" cellspacing="0" border="0" width="100%" height="100%">
	<tr>
		<td class="b1">
			<div>
				<p><img src="~/images/icon_06.png" align="absmiddle" />&nbsp;@Resources.Menu_UserCenter<span>&nbsp;>>&nbsp;</span>@Resources.Menu_Registration
			</div>
		</td>
	</tr>
	<tr>
		<td class="b4">
			<div class="c">
				<div class="right" id="mainFrame">
					<div class="right_cont">
						<div id="dataGrid"></div>
						<div id="toolBar">
							<div id="searchBar">
								<div style="float: left; display: inline; padding: 5px 5px; font-weight: bold; text-align: left;">
									@Resources.ConferenceName：<input id="queryConferenceName" class="easyui-textbox" style="height:27px; width:200px;">&nbsp;&nbsp;
									<a class="easyui-linkbutton" iconcls="icon-search" onclick="searchData()">@Resources.Search</a>
								</div>
							</div>
							<div id="menuBar"></div>
							<div class="clear"></div>
						</div>
					</div>
				</div>
			</div>
		</td>
	</tr>
</table>
<div class="docs-pictures clearfix" style="display:none"><img id="showTran" style="width:25px;height:25px;" data-original="" src=""></div>
<!-- 修改画面 start -->
<div id="detailWindow" class="easyui-window"
     title="@Resources.ConferenceAttendenceInfo" data-options="closed:true,minimizable:false,maximizable:false,iconCls:'icon-save'"
     style="width:1200px; display:none;">
	<div class="main">
		<div class="box clearfix">
			<h3 id="detailWindowTitle" class="tit01">@Resources.Modify</h3>
			<div class="formDiv">
				<form id="frmForm" method="post" enctype="multipart/form-data">
					@Html.AntiForgeryToken()
					<span id="ctnForm"></span>
					<input type="hidden" id="hidConferenceId" name="conferenceId" />
					<input type="hidden" id="hidAttendenceId" name="Id" />
					<input type="hidden" id="hidCurrency" name="Currency" />
					<input type="hidden" id="hidIdentityId" />
					<input type="hidden" id="concurrentEventList" />
					<input type="hidden" id="concurrentEventCount" />
				</form>
			</div>
			<div class="btnDiv" style="margin-top:20px">
				<input type="button" class="gbtn" onclick="saveData();" value="@Resources.Submit" />&nbsp;&nbsp;
				<input type="button" class="rbtn" onclick="$('#detailWindow').window('close');" value="@Resources.Cancel" />
			</div>
		</div>
	</div>
</div>
<!-- 修改画面 end -->
<!-- 其他费用画面 start -->
<div id="otherFeeWindow" class="easyui-window"
     title="@Resources.Fee" data-options="closed:true,minimizable:false,maximizable:false,iconCls:'icon-save'"
     style="width:1200px; display:none;">
	<div class="main">
		<div class="box clearfix">
			<h3 id="otherFeeWindowTitle" class="tit01">@Resources.Create</h3>
			<form id="frmFee" method="post">
				@Html.AntiForgeryToken()
				<table id="otherFeeDG"></table>
				<table width="100%" height="100%" id="tblFee" cellpadding="0" cellspacing="1" border="0" class="tastyle01">
					<tr>
						<td style="text-align: right;" class="w1 c1">@Resources.FeeName：</td>
						<td style="text-align: left;" class="w2 c2">
							<input type="hidden" id="hidFeeId" name="Id" />
							<input type="hidden" id="hidFeeAttendenceId" name="AttendenceId" />
							<input id="ddlFeeName" name="OtherFeeId" class="easyui-combogrid" style="height:27px; width:300px;" data-options="required:true" />
						</td>
						<td style="text-align: right;" class="w1 c1">@Resources.Count：</td>
						<td style="text-align: left;" class="w2 c2">
							<input id="ddlCount" name="Count" class="easyui-combobox" style="height:27px; width:300px;" data-options="required:true" />
						</td>
					</tr>
					<tr>
						<td style="text-align: right;" class="w1 c3">@Resources.Price：</td>
						<td style="text-align: left;" class="w2 c4">
							<input id="txtPrice" class="easyui-textbox" style="height:27px; width:300px;" disabled />
						</td>
						<td style="text-align: right;" class="w1 c3">@Resources.Currency：</td>
						<td style="text-align: left;" class="w2 c4">
							<input id="txtCurrency" class="easyui-textbox" style="height:27px; width:300px;" disabled />
						</td>
					</tr>
				</table>
			</form>
			<div class="btnDiv">
				<input type="button" class="gbtn" id="addOtherFeeBtn" onclick="addOtherFee();" value="@Resources.Create" />&nbsp;&nbsp;
				<input type="button" class="rbtn" id="cancelOtherFeeBtn" onclick="$('#otherFeeWindow').window('close');" value="@Resources.Cancel" />
			</div>
		</div>
	</div>
</div>
<!-- 其他费用画面 end -->
<!-- 缴费画面 start -->
<div id="payWindow" class="easyui-window"
     title="@Resources.PayConferenceFee" data-options="closed:true,minimizable:false,maximizable:false,iconCls:'icon-save'"
     style="width:1200px; display:none;">
	<div class="main">
		<div class="box clearfix">
			<h3 id="payWindowTitle" class="tit01">@Resources.PaymentDetail</h3>
			<form id="alipaysubmit" name="alipaysubmit" action="https://www.alipay.com/cooperate/gateway.do?" method="get">
				<input type="hidden" id="hidservice" name="service" />
				<input type="hidden" id="hidpartner" name="partner" />
				<input type="hidden" id="hidseller_id" name="seller_id" />
				<input type="hidden" id="hid_input_charset" name="_input_charset" />
				<input type="hidden" id="hidpayment_type" name="payment_type" />
				<input type="hidden" id="hidnotify_url" name="notify_url" />
				<input type="hidden" id="hidreturn_url" name="return_url" />
				<input type="hidden" id="hidsubject" name="subject" />
				<input type="hidden" id="hidsign_type" name="sign_type" />
				<input type="hidden" id="hidsign" name="sign" />
				<input type="hidden" id="hidout_trade_no" name="out_trade_no" />
				<input type="hidden" id="hidtotal_fee" name="total_fee" />
				<input type="hidden" id="hidbody" name="body" />
				<input type="submit" value="支付宝" style="display:none;">
			</form>
			<form id="epaysubmit" name="epaysubmit" action="https://pay.yizhifubj.com/customer/i18n/i18n_raw_order3_0.jsp" method="get">
				<input type="hidden" id="v_mid" name="v_mid" />
				<input type="hidden" id="v_oid" name="v_oid" />
				<input type="hidden" id="v_rcvname" name="v_rcvname" />
				<input type="hidden" id="v_rcvaddr" name="v_rcvaddr" />
				<input type="hidden" id="v_rcvtel" name="v_rcvtel" />
				<input type="hidden" id="v_rcvpost" name="v_rcvpost" />
				<input type="hidden" id="v_amount" name="v_amount" />
				<input type="hidden" id="v_ymd" name="v_ymd" />
				<input type="hidden" id="v_orderstatus" name="v_orderstatus" />
				<input type="hidden" id="v_ordername" name="v_ordername" />
				<input type="hidden" id="v_url" name="v_url" />
				<input type="hidden" id="v_moneytype" name="v_moneytype" />
				<input type="hidden" id="v_md5info" name="v_md5info" />
				<input type="hidden" id="v_language" name="v_language" />
				<input type="submit" value="易支付" style="display:none;">
			</form>
			<form id="paypalsubmit" name="paypalsubmit" action="https://www.paypal.com/cgi-bin/webscr" method="post">
				<div style="display:none;">
					<input type="text" name="cmd" value="_xclick" />
					<input type="hidden" id="p_business" name="business" />
					<input type="hidden" id="p_cert_id" name="cert_id" />
					<input type="hidden" id="p_item_name" name="item_name" />
					<input type="hidden" id="p_item_number" name="item_number" />
					<input type="hidden" id="p_amount" name="amount" />
					<input type="hidden" id="p_currency_code" name="currency_code" />
					<input type="hidden" id="p_charset" name="charset" />
					<input type="hidden" id="p_return" name="return" />
					<input type="hidden" id="p_cancel_return" name="cancel_return" />
					<input type="hidden" id="p_notify_url" name="notify_url" />
					<input type="hidden" id="p_image_url" name="image_url" />
				</div>
			</form>
			<div id="paymentDG"></div>
			<h3 id="payWindowTitle" class="tit01">@Resources.CheckPaymentRecord</h3>
			<div id="paymentRecordDG"></div>
			<form id="frmPay" method="post">
				@Html.AntiForgeryToken()
				<table width="100%" height="100%" cellpadding="0" cellspacing="1" border="0" class="tastyle01">
					<tr>
						<td style="text-align: right;" class="w1 c1">@Resources.PaidType：</td>
						<td style="text-align: left;" class="w2 c2">
							<input id="ddlPayType" name="PaymentTypeId" class="easyui-combobox" style="height:27px; width:300px;" />
							<input type="hidden" id="hidPayConferenceId">
							<input type="hidden" id="hidPayAttendenceId">
						</td>
						<td style="text-align: right;" class="w1 c1"></td>
						<td style="text-align: left;" class="w2 c2"></td>
					</tr>
				</table>
			</form>			
			<div class="btnDiv">
				<span style="color:#DC143C;text-align:center">@Resources.MsgPay</span><br />
				<input type="button" style="margin-top:20px" class="gbtn" id="payButton" onclick="pay();" value="@Resources.Pay" />&nbsp;&nbsp;
				<input type="button" style="margin-top:20px" class="rbtn" onclick="$('#payWindow').window('close');" value=@Resources.Cancel />
			</div>
		</div>
	</div>
</div>
<!-- 缴费画面 end -->
<!-- 汇款凭证画面 start -->
<div id="transWindow" class="easyui-window"
	title="@Resources.TransferEvidence" data-options="closed:true,minimizable:false,iconCls:'icon-save'"
	style="width:600px; display:none;">
	<div class="popupDiv" style="text-align:left;padding-left:40px;">
		<form id="importTransferEvidence" method="post" enctype="multipart/form-data">
			@Html.AntiForgeryToken()
			<input type="hidden" id="hidTransConferenceId" name="ConferenceId" />
			<input type="hidden" id="hidTransAttendenceId" name="Id" />
			<input id="txtTransferEvidenceFile" name="TransferEvidenceFile" class="easyui-filebox" style="height:27px; width:450px; position: relative;" data-options="prompt:'@Resources.TransferEvidence', buttonText:'@Resources.Upload',required:true,accept:'image/jpeg,image/png,image/gif'" />
			&nbsp;&nbsp;<a id="aShowImg" href="#" class="downloadLink" style="color:#1874CD;" onclick="showImg();">@Resources.Check</a>
			<br /><br />
			<input id="txtRemark" name="Remark" class="easyui-textbox" style="height:50px; width:500px;" data-options="prompt:'@Resources.Remark', multiline:true, validType:['length[1,1000]']" />
		</form>
		<div class="clear"></div>
		<div class="buttonDiv" style="text-align:center;margin-left:-25px;">
			<input type="button" class="btn lbtn" onclick="importData();" value="@Resources.Import" />&nbsp;&nbsp;
			<input type="button" class="btn rbtn" onclick="$('#transWindow').window('close');" value="@Resources.Cancel" />
		</div>
	</div>
</div>
<!-- 汇款凭证画面 end -->
<!-- 签证信息画面 start -->
<div id="visaTitleWindow" class="easyui-window"
     title="@Resources.VisaInfo" data-options="closed:true,minimizable:false,iconCls:'icon-save'"
     style="width:600px; display:none;">
	<div class="popupDiv">
		@Resources.VisaInvitation：
		<a id="aVisa1" href="#" class="downloadLink" style="color:#1874CD;">@Resources.Download</a>
		<a id="aVisa2" href="#" class="downloadLink" style="color:#1874CD;" onclick="checkVisaInfo($('#hidVisaAttendenceId').val(), $('#hidVisaConferenceId').val());">@Resources.HasNotInvitated</a>
		<a id="aVisa3" href="#" class="downloadLink" style="color:#1874CD;" onclick="checkVisaInfo($('#hidVisaAttendenceId').val(), $('#hidVisaConferenceId').val());">@Resources.HasInvitated</a>
		<div class="buttonDiv">
			<input type="button" class="btn rbtn" onclick="$('#visaTitleWindow').window('close');" value="@Resources.Cancel" />
		</div>
	</div>
</div>
<div id="visaWindow" class="easyui-window"
     title="@Resources.VisaInfo" data-options="closed:true,minimizable:false,iconCls:'icon-save'"
     style="width:1200px; display:none;">
	<div class="main">
		<div class="box clearfix">
			<form id="frmVisa" method="post">
				@Html.AntiForgeryToken()
				<table width="100%" height="100%" id="tblDetail" cellpadding="0" cellspacing="1" border="0" class="tastyle01">
					<tr>
						<td style="text-align: right;" class="w1 c1">First Name：</td>
						<td style="text-align: left;" class="w2 c2">
							<input id="v-firstname" name="FirstName" class="easyui-textbox" style="height:27px; width:300px;" data-options="required:true,validType:['length[1,100]']" />
							<input type="hidden" id="hidVisaConferenceId" name="ConferenceId" />
							<input type="hidden" id="hidVisaAttendenceId" name="AttendenceId" />
						</td>
						<td style="text-align: right;" class="w1 c1">Last Name：</td>
						<td style="text-align: left;" class="w2 c2">
							<input id="v-familyname" name="FamilyName" class="easyui-textbox" style="height:27px; width:300px;" data-options="required:true,validType:['length[1,100]']" />
						</td>
					</tr>
					<tr>
						<td style="text-align: right;" class="w1 c3">Title：</td>
						<td style="text-align: left;" class="w2 c4">
							<input id="v-title" name="Title" class="easyui-combobox" style="height:27px; width:300px;" data-options="editable:false,validType:['length[1,100]']" />
						</td>
						<td style="text-align: right;" class="w1 c3">Affiliation：</td>
						<td style="text-align: left;" class="w2 c4">
							<input id="v-affiliation" name="Affiliation" class="easyui-textbox" style="height:27px; width:300px;" data-options="required:true,validType:['length[1,100]']" />
						</td>
					</tr>
					<tr>
						<td style="text-align: right;" class="w1 c1">Country：</td>
						<td style="text-align: left;" class="w2 c2">
							<input id="v-country" name="Country" class="easyui-combobox" style="height:27px; width:300px;" />
						</td>
						<td style="text-align: right;" class="w1 c1"></td>
						<td style="text-align: left;" class="w2 c2"></td>
					</tr>
					<tr>
						<td style="text-align: right;" class="w1 c3">State/Province：</td>
						<td style="text-align: left;" class="w2 c4">
							<input id="v-state" name="State" class="easyui-textbox" style="height:27px; width:300px;" />
						</td>
						<td style="text-align: right;" class="w1 c3"></td>
						<td style="text-align: left;" class="w2 c4"></td>
					</tr>
					<tr>
						<td style="text-align: right;" class="w1 c1">City：</td>
						<td style="text-align: left;" class="w2 c2">
							<input id="v-city" name="City" class="easyui-textbox" style="height:27px; width:300px;" />
						</td>
						<td style="text-align: right;" class="w1 c1"></td>
						<td style="text-align: left;" class="w2 c2"></td>
					</tr>
					<tr>
						<td style="text-align: right;" class="w1 c3">Zip/Postal Code：</td>
						<td style="text-align: left;" class="w2 c4">
							<input id="v-postcode" name="ZipCode" class="easyui-textbox" style="height:27px; width:300px;" data-options="required:true,validType:['length[1,100]']" />
						</td>
						<td style="text-align: right;" class="w1 c3"></td>
						<td style="text-align: left;" class="w2 c4"></td>
					</tr>
					<tr>
						<td style="text-align: right;" class="w1 c1">Address：</td>
						<td style="text-align: left;" class="w2 c2" colspan="3">
							<input id="v-address" name="Address" class="easyui-textbox" style="height:27px; width:884px;" data-options="required:true,validType:['length[1,200]']" />
						</td>
					</tr>
					<tr>
						<td style="text-align: right;" class="w1 c3">Email：</td>
						<td style="text-align: left;" class="w2 c4">
							<input id="v-email" name="Mail" class="easyui-textbox" style="height:27px; width:300px;" data-options="required:true,validType:['email','length[1,100]']" />
						</td>
						<td style="text-align: right;" class="w1 c3">Telephone：</td>
						<td style="text-align: left;" class="w2 c4">
							<input id="v-telephone" name="Telephone" class="easyui-textbox" style="height:27px; width:300px;" data-options="required:true,validType:['length[1,100]']" />
						</td>
					</tr>
					<tr>
						<td style="text-align: right;" class="w1 c1">Birthdate：</td>
						<td style="text-align: left;" class="w2 c2">
							<input id="v-birthdate" name="Birthday" class="easyui-datebox" style="height:27px; width:300px;" data-options="editable:false,required:true" />
						</td>
						<td style="text-align: right;" class="w1 c1">Gender：</td>
						<td style="text-align: left;" class="w2 c2">
							<select id="v-gender" name="Gender" class="easyui-combobox" style="height:27px; width:300px;" data-options="editable:false,required:true,panelHeight:'auto'">
								<option value="Male">Male</option>
								<option value="Female">Female</option>
							</select>
						</td>
					</tr>
					<tr>
						<td style="text-align: right;" class="w1 c3">Passport No.：</td>
						<td style="text-align: left;" class="w2 c4">
							<input id="v-passportNum" name="PassportNum" class="easyui-textbox" style="height:27px; width:300px;" data-options="required:true" />
						</td>
						<td style="text-align: right;" class="w1 c3">Passport Issue Country：</td>
						<td style="text-align: left;" class="w2 c4">
							<input id="v-countryOfIssue" name="CountryOfIssue" class="easyui-textbox" style="height:27px; width:300px;" data-options="required:true,validType:['length[1,100]']" />
						</td>
					</tr>
					<tr>
						<td style="text-align: right;" class="w1 c1">Passport Issue Date：</td>
						<td style="text-align: left;" class="w2 c2">
							<input id="v-issueDate" name="IssueDate" class="easyui-datebox" style="height:27px; width:300px;" data-options="editable:false,required:true" />
						</td>
						<td style="text-align: right;" class="w1 c1">Passport Expiry Date：</td>
						<td style="text-align: left;" class="w2 c2">
							<input id="v-expiryDate" name="ExpiryDate" class="easyui-datebox" style="height:27px; width:300px;" data-options="editable:false,required:true" />
						</td>
					</tr>
					<tr>
						<td style="text-align: right;" class="w1 c3">Arrival Date：</td>
						<td style="text-align: left;" class="w2 c4">
							<input id="v-arrivalDate" name="ArrivalDate" class="easyui-datebox" style="height:27px; width:300px;" data-options="editable:false,required:true" />
						</td>
						<td style="text-align: right;" class="w1 c3">Departural Date：</td>
						<td style="text-align: left;" class="w2 c4">
							<input id="v-departuralDate" name="DeparturalDate" class="easyui-datebox" style="height:27px; width:300px;" data-options="editable:false,required:true" />
						</td>
					</tr>
					<tr>
						<td style="text-align: right;" class="w1 c1">Remark：</td>
						<td style="text-align: left;" class="w2 c2" colspan="3">
							<input id="v-remark" name="Remark" class="easyui-textbox" style="height:50px; width:884px;" data-options="multiline:true,validType:['length[1,1000]']" />
						</td>
					</tr>
				</table>
			</form>
			<div class="btnDiv">
				<input type="button" id="saveVisa" class="gbtn" onclick="saveVisa();" value="@Resources.Save" />&nbsp;&nbsp;
				<input type="button" class="rbtn" onclick="$('#visaWindow').window('close');" value="@Resources.Close" />
			</div>
		</div>
	</div>
</div>
<!-- 签证信息画面 end -->
<!-- 发票信息画面 start -->
<div id="invoiceWindow" class="easyui-window"
	title="@Resources.Invoice" data-options="closed:true,minimizable:false,iconCls:'icon-save'"
	style="width:600px; display:none;">
	<div class="main">
		<div class="box clearfix">
			<form id="frmInvoice" method="post">
				@Html.AntiForgeryToken()
				<div class="tit01">
					<div style="float:left; margin-left:10px; font-size:18px;">发票信息</div>
				</div>
				<table width="100%" height="100%" id="tblInvoice" cellpadding="0" cellspacing="1" border="0" class="tastyle01">
					<tr>
						<td style="text-align: right;" class="w2 c1">@Resources.InvoiceTitle：</td>
						<td style="text-align: left;" class="c2">
							<input type="hidden" id="hidInvAttendenceId" name="Id" />
							<input id="i-txtInvoiceTitle" name="InvoiceTitle" class="easyui-combobox" style="height:27px; width:300px;" data-options="validType:['length[1,100]']" />
						</td>
					</tr>
					<tr>
						<td style="text-align: right;" class="w2 c3">@Resources.TaxNum：</td>
						<td style="text-align: left;" class="c4">
							<input id="i-txtTaxNum" name="TaxNum" class="easyui-textbox" style="height:27px; width:300px;" data-options="validType:['length[1,100]']" />
						</td>
					</tr>
					<tr>
						<td style="text-align: right;" class="w2 c1">@Resources.Bank：</td>
						<td style="text-align: left;" class="c2">
							<input id="i-txtBank" name="Bank" class="easyui-textbox" style="height:27px; width:300px;" data-options="validType:['length[1,100]']" />
						</td>
					</tr>
					<tr>
						<td style="text-align: right;" class="w2 c3">@Resources.BankAccount：</td>
						<td style="text-align: left;" class="c4">
							<input id="i-txtBankAccount" name="BankAccount" class="easyui-textbox" style="height:27px; width:300px;" data-options="validType:['length[1,100]']" />
						</td>
					</tr>
					<tr>
						<td style="text-align: right;" class="w2 c1">@Resources.AddressAndTel：</td>
						<td style="text-align: left;" class="c2">
							<input id="i-txtAddressAndTel" name="AddressAndTel" class="easyui-textbox" style="height:27px; width:300px;" data-options="validType:['length[1,200]']" />
						</td>
					</tr>
					<tr id="trMsg">
						<td style="text-align: center; color:red;" class="w2 c1" colspan="2">您的发票已开具，如需修改发票信息，请联系会务组。</td>
					</tr>
				</table>
				<div class="tit01">
					<div style="float:left; margin-left:10px; font-size:18px;">发票收取信息</div>
				</div>
				<table width="100%" height="100%" id="tblReceive" cellpadding="0" cellspacing="1" border="0" class="tastyle01">
					<tr>
						<td style="text-align: right;" class="w2 c1">@Resources.InvoiceAddress：</td>
						<td style="text-align: left;" class="c2">
							<input id="i-txtInvoiceAddress" name="InvoiceAddress" class="easyui-textbox" style="height:27px; width:300px;" data-options="validType:['length[1,200]']" />
						</td>
					</tr>
					<tr>
						<td style="text-align: right;" class="w2 c3">@Resources.InvoiceReceive：</td>
						<td style="text-align: left;" class="c4">
							<input id="i-txtInvoiceReceive" name="InvoiceReceive" class="easyui-textbox" style="height:27px; width:300px;" data-options="validType:['length[1,100]']" />
						</td>
					</tr>
					<tr>
						<td style="text-align: right;" class="w2 c1">@Resources.InvoiceTel：</td>
						<td style="text-align: left;" class="c2">
							<input id="i-txtInvoiceTel" name="InvoiceTel" class="easyui-textbox" style="height:27px; width:300px;" data-options="validType:['length[1,100]']" />
						</td>
					</tr>
					<tr>
						<td style="text-align: right;" class="w2 c3">@Resources.InvoiceMail：</td>
						<td style="text-align: left;" class="c4">
							<input id="i-txtInvoiceMail" name="InvoiceMail" class="easyui-textbox" style="height:27px; width:300px;" data-options="validType:['length[1,100]']" />
						</td>
					</tr>
				</table>
				<div class="tit01">
					<div style="float:left; margin-left:10px; font-size:18px;">开票情况</div>
				</div>
				<table width="100%" height="100%" id="tblSituation" cellpadding="0" cellspacing="1" border="0" class="tastyle01">
					<tr>
						<td style="text-align: right;" class="w2 c1">@Resources.InvoiceStatus：</td>
						<td style="text-align: left;" class="c2">
							<span id="i-invoiceStatus"></span>
						</td>
					</tr>
					<tr>
						<td style="text-align: right;" class="w2 c3">@Resources.InvoiceType：</td>
						<td style="text-align: left;" class="c4">
							<span id="i-invoiceType"></span>
						</td>
					</tr>
					<tr>
						<td style="text-align: right;" class="w2 c1">@Resources.InvoiceClass：</td>
						<td style="text-align: left;" class="c2">
							<span id="i-invoiceClass"></span>
						</td>
					</tr>
					<tr>
						<td style="text-align: right;" class="w2 c3">@Resources.InvoiceDate：</td>
						<td style="text-align: left;" class="c4">
							<span id="i-invoiceDate"></span>
						</td>
					</tr>
					<tr>
						<td style="text-align: right;" class="w2 c1">@Resources.InvoiceCode：</td>
						<td style="text-align: left;" class="c2">
							<span id="i-invoiceCode"></span>
						</td>
					</tr>
					<tr>
						<td style="text-align: right;" class="w2 c3">@Resources.InvoiceNo：</td>
						<td style="text-align: left;" class="c4">
							<span id="i-invoiceNum"></span>
						</td>
					</tr>
					<tr>
						<td style="text-align: right;" class="w2 c1">@Resources.InvoiceAmount：</td>
						<td style="text-align: left;" class="c2">
							<span id="i-invoiceAmount"></span>
						</td>
					</tr>
					<tr>
						<td style="text-align: right;" class="w2 c3">@Resources.InvoiceExpress：</td>
						<td style="text-align: left;" class="c4">
							<span id="i-invoiceExpress"></span>
						</td>
					</tr>
				</table>
			</form>
			<div class="btnDiv">
				<input type="button" class="gbtn" onclick="saveInvoice();" value="@Resources.Save" />&nbsp;&nbsp;
				<input type="button" class="rbtn" onclick="$('#invoiceWindow').window('close');" value="@Resources.Close" />
			</div>
		</div>
	</div>
</div>
<!-- 发票信息画面 end -->
<!-- 查看参会信息画面 start -->
<div id="personalWindow" class="easyui-window"
     title="@Resources.CheckAttendConferenceInfo" data-options="closed:true,minimizable:false,maximizable:false,iconCls:'icon-save'"
     style="width:1200px; display:none;">
	<div class="main">
		<div class="box clearfix">
			<form id="personalRecord" method="post">
				@Html.AntiForgeryToken()
				<table width="100%" height="100%" cellpadding="0" cellspacing="1" border="0" class="tastyle01">
					<tr>
						<td id="personalWindowTitle" style="text-align:left;font-size:18px;font-weight:bold;color:#333;text-indent: -15px;background:#fff;border: 1px solid #BEBEBE;font-size:14px;padding-left: 20px;" class="w1 c8" colspan="4"></td>
					</tr>
					<tr>
						<td style="text-align:left;font-size:18px;font-weight:bold;color:#333;text-indent: -15px;background:#fff;border: 1px solid #BEBEBE;font-size:14px;padding-left: 20px;" class="w1 c8" colspan="4">@Resources.BasicInfo</td>
					</tr>
					<tr>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1">@Resources.AttendenceId：</td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="2">
							<span id="attendid"></span>
						</td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c4" rowspan="6">
							<img id="qrCode" style="height:200px; width:200px;" />
						</td>
					</tr>
					<tr>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c3">@Resources.AttendenceIdentity：</td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c4" colspan="2">
							<span id="attendenceIdentity"></span>
						</td>
					</tr>
					<tr>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1">@Resources.FullName：</td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="2">
							<span id="fullNamePersonal"></span>
						</td>
					</tr>
					<tr>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c3">@Resources.Affiliation：</td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c4" colspan="2">
							<span id="affiliationPersonal"></span>
						</td>
					</tr>
					<tr>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1">@Resources.Country：</td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="2">
							<span id="countryPersonal"></span>
						</td>
					</tr>
					<tr>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c3">@Resources.Mail：</td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c4" colspan="2">
							<span id="mailPersonal"></span>
						</td>
					</tr>
					<tr>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1">@Resources.Mobile：</td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="3">
							<span id="telePersonal"></span>
						</td>
					</tr>
					<tr>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c3">@Resources.Address：</td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c4" colspan="3">
							<span id="addressPersonal"></span>
						</td>
					</tr>
					<tr>
						<td style="text-align:left;font-size:18px;font-weight:bold;color:#333;text-indent: -15px;background:#fff;border: 1px solid #BEBEBE;font-size:14px;padding-left: 20px;" class="w1 c8" colspan="4">@Resources.EssayInfo</td>
					</tr>
					<tr>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1">@Resources.EssayId：</td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="3">
							<span id="essayIdForPersonal"></span>
						</td>
					</tr>
					<tr>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c3">@Resources.ReportId：</td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c4" colspan="3">
							<span id="reportIdForPersonal"></span>
						</td>
					</tr>
					<tr>
						<td style="text-align:left;font-size:18px;font-weight:bold;color:#333;text-indent: -15px;background:#fff;border: 1px solid #BEBEBE;font-size:14px;padding-left: 20px;" class="w1 c8" colspan="4">@Resources.InvoiceInfo</td>
					</tr>
					<tr>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1">@Resources.InvoiceTitle：</td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="3">
							<span id="invoiceTitleForPersonal"></span>
						</td>
					</tr>
					<tr>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c3">@Resources.TaxNum：</td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c4" colspan="3">
							<span id="TaxNumForPersonal"></span>
						</td>
					</tr>
					<tr>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1">@Resources.AddressAndTel：</td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="3">
							<span id="AddressAndMobileForPersonal"></span>
						</td>
					</tr>
					<tr>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c3">@Resources.BankAndAccount：</td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c4" colspan="3">
							<span id="BankAndAccountForPersonal"></span>
						</td>
					</tr>
					<tr>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1">@Resources.InvoiceAmount：</td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2">
							<span id=""></span>
						</td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1">@Resources.InvoiceNum：</td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2">
							<span id="InvoiceNumForPersonal"></span>
						</td>
					</tr>
					<tr>
						<td style="text-align:left;font-size:18px;font-weight:bold;color:#333;text-indent: -15px;background:#fff;border: 1px solid #BEBEBE;font-size:14px;padding-left: 20px;" class="w1 c8" colspan="4">@Resources.Fee</td>
					</tr>
					<tr>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1">@Resources.PaymentShouldPay：</td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2">
							<span id="feePersonal"></span>
						</td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1">@Resources.PaidType：</td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2">
							<span id="paidTypePersonal"></span>
						</td>
					</tr>
					<tr>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c3">@Resources.PaymentHasPay：</td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c4">
							<span id="paymentHasPay"></span>
						</td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c3">@Resources.PayStatus：</td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c4">
							<span id="hasPaidForPersonal"></span>
						</td>
					</tr>
					<tr>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1">@Resources.PaymentDetail：</td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="3">
							<span id="paymentDetailForPersonal"></span>
						</td>
					</tr>
					<tr>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c3">@Resources.PayDate：</td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c4" colspan="3">
							<span id="payDateForPersonal"></span>
						</td>
					</tr>
					<tr id="trCustomizeList" style="display:none;">
						<td style="text-align:left;font-size:18px;font-weight:bold;color:#333;text-indent: -15px;background:#fff;border: 1px solid #BEBEBE;font-size:14px;padding-left: 20px;" class="w1 c8" colspan="4">@Resources.Other</td>
					</tr>
					<tr id="trCustomize1" style="display:none;">
						<td id="tdCustomize1" style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1"></td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="3">
							<span id="spCustomize1"></span>
						</td>
					</tr>
					<tr id="trCustomize2" style="display:none;">
						<td id="tdCustomize2" style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1"></td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="3">
							<span id="spCustomize2"></span>
						</td>
					</tr>
					<tr id="trCustomize3" style="display:none;">
						<td id="tdCustomize3" style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1"></td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="3">
							<span id="spCustomize3"></span>
						</td>
					</tr>
					<tr id="trCustomize4" style="display:none;">
						<td id="tdCustomize4" style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1"></td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="3">
							<span id="spCustomize4"></span>
						</td>
					</tr>
					<tr id="trCustomize5" style="display:none;">
						<td id="tdCustomize5" style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1"></td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="3">
							<span id="spCustomize5"></span>
						</td>
					</tr>
					<tr id="trCustomize6" style="display:none;">
						<td id="tdCustomize6" style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1"></td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="3">
							<span id="spCustomize6"></span>
						</td>
					</tr>
					<tr id="trCustomize7" style="display:none;">
						<td id="tdCustomize7" style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1"></td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="3">
							<span id="spCustomize7"></span>
						</td>
					</tr>
					<tr id="trCustomize8" style="display:none;">
						<td id="tdCustomize8" style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1"></td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="3">
							<span id="spCustomize8"></span>
						</td>
					</tr>
					<tr id="trCustomize9" style="display:none;">
						<td id="tdCustomize9" style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1"></td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="3">
							<span id="spCustomize9"></span>
						</td>
					</tr>
					<tr id="trCustomize10" style="display:none;">
						<td id="tdCustomize10" style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1"></td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="3">
							<span id="spCustomize10"></span>
						</td>
					</tr>
					<tr>
						<td style="text-align:left;font-size:18px;font-weight:bold;color:#333;text-indent: -15px;background:#fff;border: 1px solid #BEBEBE;font-size:14px;padding-left: 20px;" class="w1 c8" colspan="4">@Resources.Remark</td>
					</tr>
					<tr>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w1 c1">@Resources.Remark：</td>
						<td style="text-align: left;font-size:12px;background:#fff;border: 1px solid #BEBEBE;padding-left: 20px;" class="w2 c2" colspan="3">
							<span id="otherRemarkPersonal"></span>
						</td>
					</tr>
				</table>
			</form>
			<div class="btnDiv">
				<input type="button" class="rbtn" onclick="$('#personalWindow').window('close');" value="@Resources.Close" />
			</div>
		</div>
	</div>
</div>
<!-- 查看参会信息画面 end -->

@section Scripts {
<link rel="stylesheet" type="text/css" href="~/Content/dist/viewer.css" />
<script type="text/javascript" charset="utf-8" src="~/Scripts/distJS/bootstrap.min.js"></script>
<script type="text/javascript" charset="utf-8" src="~/Scripts/distJS/viewer.js"></script>
<script type="text/javascript" charset="utf-8" src="~/Scripts/distJS/main.js"></script>
<script>
	var windowHeight = $(window).height() - 200;
	$("#mainFrame").css("height", (windowHeight)+"px");

	$(function () {
		$("#queryConferenceName").textbox("textbox").bind("keydown", function(e) {
			if (e.keyCode == 13) {
				searchData()
			}
		});

		$("#dataGrid").datagrid({
			url: "@Url.Action(nameof(ProfileAttendenceInfoController.GetData),
					nameof(ProfileAttendenceInfoController).GetControllerName())",
			method: "get",
			singleSelect: true,
			fitColumns: true,
			width: 1200,
			height: $(window).height() - 110,
			nowrap: false,
			pagination: true,
			pageSize: @ConstValues.DefaultGridRows,
			striped: true,
			toolbar: "#toolBar",
			pageSize: 100,
			pageList: [100, 200, 300, 400, 500],
			columns: [[
				{
					field: "operate", title: "@Resources.Operate", align: "center", width: 320,
					formatter: function (value, rec) {
						var str1 = "", str2 = "";
						var tmp = rec.fullName == null ? "" : rec.fullName.replace(new RegExp("'",'g'),"’").replace(new RegExp('"','g'),"“");

						str1 += "<a href='#' style='color:#66CDAA;font-weight:bold;text-decoration:underline;' onclick='editData(\""
							+ rec.id + "\",\"" + rec.conferenceId + "\",\"" + rec.hasPaid + "\")'>@Resources.Modify</a>";
						str1 += " | <a href='#' style='color:#DC143C;font-weight:bold;text-decoration:underline;' onclick='deleteData(\""
							+ rec.id + "\",\"" + tmp + "\")'>@Resources.Delete</a>";
						str1 += "<br />";

						if (rec.hasPaid || rec.beforePay || rec.afterPay) {
							str2 += "<span style='color:#808080;font-weight:bold;text-decoration:underline;'>@Resources.PaidOnLine</span>";
						} else {
							str2 += "<a href='#' style='color:#1874CD;font-weight:bold;text-decoration:underline;' onclick='payOnLine(\""
									+ rec.conferenceId + "\",\"" + rec.id + "\",\"" + rec.paymentTypeId + "\",\"true\")'>@Resources.PaidOnLine</a>";
						}

						str2 += " | <a href='#' style='color:#FF8C00;font-weight:bold;text-decoration:underline;' onclick='openImport(\""
								+ rec.id + "\",\"" + rec.conferenceId + "\",\"" + rec.uploadUrl + "\",\"" + rec.fileName + "\")'>@Resources.TransferEvidence</a>";
						str2 += " | <a href='#' style='color:#573CC4;font-weight:bold;text-decoration:underline;' onclick='openVisa(\""
								+ rec.id + "\",\"" + rec.conferenceId + "\",\"" + rec.hasVisa + "\",\"" + rec.sendStatus + "\")'>@Resources.Visa</a>";
						str2 += " | <a href='#' style='color:#000000;font-weight:bold;text-decoration:underline;' onclick='checkInvoiceInfo(\""
								+ rec.id + "\")'>@Resources.Invoice</a>";

						return str1 + str2;
					}
				},
				{
					field: "conferenceName", title: "@Resources.ConferenceName", align: "center", sortable: true, width: 300,
					formatter: function (value, rec) {
						var strInfo = ""
						if (rec.homePageUrl != null && rec.homePageUrl != "") {
							strInfo += "<a href=' "+ rec.homePageUrl +" ' style='color:#1874CD;text-decoration:underline;' target='_blank'>" + value + "</a>  "
						} else {
							var tmp = rec.conferenceNickName == null ? "" : rec.conferenceNickName.replace(new RegExp("'",'g'),"’").replace(new RegExp('"','g'),"“");
							strInfo += "<a href='@Url.Action(nameof(MeetingMainController.Index), nameof(MeetingMainController).GetControllerName())"
									+ "/" + tmp + "' style='color:#1874CD;text-decoration:underline;' target='_blank'>" + value + "</a>  ";
						}
						return strInfo;
					}
				},
				{
					field: "fullName", title: "@Resources.FullName", align: "center", sortable: true, width: 150,
					formatter: function (value, rec) {
						var tmp = rec.conferenceName == null ? "" : rec.conferenceName.replace(new RegExp("'",'g'),"’").replace(new RegExp('"','g'),"“");
						var strInfo = "<a href='#' style='color:#1874CD;text-decoration:underline;' onclick='showPersonalData(\"" + rec.id + "\",\"" + tmp + "\",\"" + rec.conferenceId + "\")'>" + value + "</a>  ";
						return strInfo;
					}
				},
				{ field: "currency", title: "", align: "center", sortable: true, width: 30 },
				{
					field: "totalFee", title: "@Resources.Fee", align: "center", sortable: true, width: 100,
					formatter: function (value, rec) {
						var strInfo = "";
						if (value != null) {
							if (rec.isRefund || rec.hasPaid) {
								strInfo = "<a href='#' style='color:#1874CD;text-decoration:underline;' onclick='payOnLine(\""
										+ rec.conferenceId + "\",\"" + rec.id + "\",\"" + rec.paymentTypeId + "\",\"false\")'>" + value + "</a>";
							} else if (rec.beforePay) {
								strInfo = "<a href='#' style='color:#1874CD;text-decoration:underline;'>" + value + "</a>";
							} else {
								strInfo = "<a href='#' style='color:#1874CD;text-decoration:underline;' onclick='payOnLine(\""
										+ rec.conferenceId + "\",\"" + rec.id + "\",\"" + rec.paymentTypeId + "\",\"true\")'>" + value + "</a>";
							}
							return strInfo;
						} else {
							return "@ConstValues.strHyphen@ConstValues.strHyphen";
						}
					}
				},
				{
					field: "hasPaid", title: "@Resources.PayStatus", align: "center", sortable: true, width: 150,
					formatter: function (value, rec) {
						var strInfo = "";
						if (rec.isRefund) {
							strInfo = "<a href='#' style='color:#1874CD;text-decoration:underline;' onclick='payOnLine(\""
									+ rec.conferenceId + "\",\"" + rec.id + "\",\"" + rec.paymentTypeId + "\",\"false\")'>@Resources.Refunded</a>";
						} else if (rec.hasPaid) {
							strInfo = "<a href='#' style='color:#1874CD;text-decoration:underline;' onclick='payOnLine(\""
									+ rec.conferenceId + "\",\"" + rec.id + "\",\"" + rec.paymentTypeId + "\",\"false\")'>@Resources.SuccessPay</a>";
						} else if (rec.beforePay) {
							strInfo = "@ConstValues.strHyphen@ConstValues.strHyphen";
						} else if (rec.afterPay) {
							strInfo = "<a href='#' style='color:#1874CD;text-decoration:underline;' onclick='payOnLine(\""
									+ rec.conferenceId + "\",\"" + rec.id + "\",\"" + rec.paymentTypeId + "\",\"false\")'>@Resources.MsgOverPayTime</a>";
						} else if (rec.payRecordId != null) {
							strInfo = "<a href='#' style='color:#1874CD;text-decoration:underline;' onclick='payOnLine(\""
									+ rec.conferenceId + "\",\"" + rec.id + "\",\"" + rec.paymentTypeId + "\",\"true\")'>@Resources.FailPay</a>";
						} else {
							strInfo = "<a href='#' style='color:#1874CD;text-decoration:underline;' onclick='payOnLine(\""
									+ rec.conferenceId + "\",\"" + rec.id + "\",\"" + rec.paymentTypeId + "\",\"true\")'>@Resources.WaitForPay</a>";
						}
						return strInfo;
					}
				},
				{ field: "registrationTime", title: "@Resources.AttendenceDate", align: "center", sortable: false, width: 150 }
			]]
		});

		$("#detailWindow").window({
			onOpen: function () {
				$(this).scrollTop(0);
				$("#ctnForm").html("");
			},
			height: 800,
			top: 100
		});

		$("#otherFeeWindow").window({
			onOpen: function () {
				$(this).scrollTop(0);
			},
			top: ($(window).height() - 600) * 0.5
		});

		$("#payWindow").window({
			onOpen: function () {
				$(this).scrollTop(0);
			},
			top: ($(window).height() - 600) * 0.5
		});

		$("#transWindow").window({
			onOpen: function () {
				$(this).scrollTop(0);
			},
			top: ($(window).height() - 600) * 0.5
		});

		$("#visaTitleWindow").window({
			onOpen: function () {
				$(this).scrollTop(0);
			},
			top: ($(window).height() - 600) * 0.5
		});

		$("#visaWindow").window({
			onOpen: function () {
				$(this).scrollTop(0);
			},
			height: 790,
			top: 100,
		});

		$("#invoiceWindow").window({
			onOpen: function () {
				$(this).scrollTop(0);
			},
			height: 800,
			top: 100
		});

		$("#personalWindow").window({
			onOpen: function () {
				$(this).scrollTop(0);
			},
			height: 800,
			top: 100
		});
	});

	function searchData() {
		$("#dataGrid").datagrid("load", {
			queryConferenceName: $("#queryConferenceName").textbox("getValue"),
		});
	}

	function deleteData(id, name) {
		var confirmMessage = "@Resources.CfmDelete";
		confirmMessage = confirmMessage.replace(/\{0\}/g, name);
		$.messager.confirm("@Resources.Delete", confirmMessage, function (r) {
			if (r) {
				$("#hidAttendenceId").val(id);
				$.post("@Url.Action(nameof(ProfileAttendenceInfoController.Delete),
						nameof(ProfileAttendenceInfoController).GetControllerName())"+"/"+id,
					$("#frmForm").serialize(),
					function(data, textStatus, jqXHR) {
						if (data.result == "@ConstValues.AjaxFailResult") {
							common.showError(data.message);
						} else {
							common.showSuccess(data.message, true);
							$("#detailWindow").window("close");
							$("#dataGrid").datagrid("reload");
						}
					}
				);
			}
		});
	}

	function editData(id, conferenceId, hasPaid) {
		$("#hidConferenceId").val(conferenceId);
		$("#hidAttendenceId").val(id);
		var loading = layer.load(0,  {
			shade: [0.4,"#fff"]
		});
		var url = "@Url.Action(nameof(UtilityController.GetCurrentPageValue),
				nameof(UtilityController).GetControllerName())" + "?id=" + id;

		$.get(url, null, function (dt, textStatus, jqXHR) {
			if (dt.result == "@ConstValues.AjaxSuccessResult") {
				$("#ctnForm").append("<div id='divCurrency'><div class='titleDiv'>@Resources.Currency：</div>"
					+ "<div class='contentDiv'><select id='ddlCurrency' class='easyui-combobox' style='height:27px; width:500px'></select></div>"
					+ "<div class='clear'></div></div>"
				);

				var url = "@Url.Action(nameof(UtilityController.GetCurrency),
						nameof(UtilityController).GetControllerName())" + "?conferenceId=" + $("#hidConferenceId").val();
				$.get(url, null, function (data, textStatus, jqXHR) {
					if (data.data.length == 0) {
						$("#divCurrency").attr("style","display:none");
					} else {
						$("#divCurrency").attr("style","display:block");
						$("#ddlCurrency").combobox({
							data: data.data,
							required: true,
							editable: false,
							disabled: dt.data.hasPaid,
							valueField: "currency",
							textField: "currency",
							panelHeight: "auto",
							onLoadSuccess: function(data) {
								$("#ddlCurrency").combobox("setValue", dt.data.currency);
							},
							onSelect: function (rec) {
								$("#hidCurrency").val(rec.currency);

								url = "@Url.Action(nameof(UtilityController.GetCurrentPageItem),
										nameof(UtilityController).GetControllerName())?conferenceId=" + $("#hidConferenceId").val();
								$.get(url, null, function (data, textStatus, jqXHR) {
									if (data.result == "@ConstValues.AjaxSuccessResult") {
										for (var index = 0; index < data.data.length; index++) {
											if (data.data[index].key == "AttendenceIdentity") {
												var applyIdentity = $("#applyIdentity").val()
												var newValue = $("#txtAttendenceIdentity").combobox("getValue");
												if (applyIdentity.indexOf(newValue) != -1 || $("#concurrentEventList").val() == "") {
													var loading = layer.load(0,  {
														shade: [0.4,"#fff"]
													});
													$("#concurrentEvent").empty()
													setConcurrentEvent(newValue, rec.currency)
													fillback(hasPaid, $("#concurrentEventList").val(), $("#concurrentEventCount").val(), loading);
												} else {
													$.messager.confirm("@Resources.Confirm", "@Resources.ChangeIdentityConfirmMsg", function (r) {
														if (r) {
															var loading = layer.load(0,  {
																shade: [0.4,"#fff"]
															});
															$("#concurrentEvent").empty()
															setConcurrentEvent(newValue, $("#hidCurrency").val())
															setTimeout(function () {
																var tableList = document.getElementsByName("eventTable")
																for (var i = 0; i<tableList.length; i++) {
																	var tableId = tableList[i].id
																	$("#"+tableId).show();
																}
																layer.close(loading);
															}, 1000);
														} else {
															$("#txtAttendenceIdentity").combobox("setValue", $("#hidIdentityId").val())
														}
													});
												}
											}
											else if (data.data[index].key == "Page") {
												var orgCount = 0;
												$("#txtPage").combogrid({
													prompt: data.data[index].tip,
													required: data.data[index].isRequired,
													editable: false,
													idField: "id",
													textField: "name",
													url: "@Url.Action(nameof(UtilityController.GetFeePage), nameof(UtilityController).GetControllerName())"
															+ "?conferenceId=" + $("#hidConferenceId").val() + "&currency=" + $("#hidCurrency").val(),
													columns:[[
														{ field: "id", hidden: true },
														{ field: "name", title: "@Resources.FeeName", width: 358 },
														{ field: "currency", title: "@Resources.Currency", width: 80 },
														{ field: "price", title: "@Resources.Price", width: 60 }
													]],
													onLoadSuccess: function(data) {
														orgCount = data.length;
													},
													onShowPanel: function () {
														if (orgCount < 10) {
															$(this).combogrid("panel").height("auto");
														} else {
															$(this).combogrid("panel").height(200);
														}
													}
												});
											}
											else if (data.data[index].key == "Attendence") {
												var orgCount = 0;
												$("#txtAttendence").combogrid({
													prompt: data.data[index].tip,
													required: data.data[index].isRequired,
													editable: false,
													idField: "id",
													textField: "name",
													url: "@Url.Action(nameof(UtilityController.GetFeeAttendence), nameof(UtilityController).GetControllerName())"
															+ "?conferenceId=" + $("#hidConferenceId").val() + "&currency=" + $("#hidCurrency").val(),
													columns:[[
														{ field: "id", hidden: true },
														{ field: "name", title: "@Resources.AttendenceIdentity", width: 238 },
														{ field: "currency", title: "@Resources.Currency", width: 80 },
														{ field: "price", title: "@Resources.Price", width: 60 },
														{ field: "discount", title: "@Resources.Discount", width: 120 }
													]],
													onLoadSuccess: function(data) {
														orgCount = data.length;
													},
													onShowPanel: function () {
														if (orgCount < 10) {
															$(this).combogrid("panel").height("auto");
														} else {
															$(this).combogrid("panel").height(200);
														}
													}
												});
											}
											else if (data.data[index].key == "Meal") {
												var orgCount = 0;
												$("#txtMeal").combogrid({
													prompt: data.data[index].tip,
													required: data.data[index].isRequired,
													editable: false,
													idField: "id",
													textField: "name",
													url: "@Url.Action(nameof(UtilityController.GetFeeMeal), nameof(UtilityController).GetControllerName())"
															+ "?conferenceId=" + $("#hidConferenceId").val() + "&currency=" + $("#hidCurrency").val(),
													columns:[[
														{ field: "id", hidden: true },
														{ field: "name", title: "@Resources.FeeName", width: 238 },
														{ field: "currency", title: "@Resources.Currency", width: 80 },
														{ field: "price", title: "@Resources.Price", width: 60 },
														{ field: "count", title: "@Resources.EatTotalTimes", width: 120 },
													]],
													onLoadSuccess: function(data) {
														orgCount = data.length;
													},
													onShowPanel: function () {
														if (orgCount < 10) {
															$(this).combogrid("panel").height("auto");
														} else {
															$(this).combogrid("panel").height(200);
														}
													}
												});
											}
										}
									}
								});
							}
						});
					}
				});
				$("#hidCurrency").val(dt.data.currency);

				url = "@Url.Action(nameof(UtilityController.GetCurrentPageItem),
						nameof(UtilityController).GetControllerName())?conferenceId=" + $("#hidConferenceId").val();

				$.get(url, null, function (data, textStatus, jqXHR) {
					if (data.result == "@ConstValues.AjaxSuccessResult") {
						for (var index = 0; index < data.data.length; index++) {
							if (data.data[index].key == "Mail") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-textbox' style='height:27px; width:500px' id='txtMail' name='Mail' />"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								$("#txtMail").textbox({ disabled: true });
							}
							else if (data.data[index].key == "Gender") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-combobox' style='height:27px; width:500px' id='txtGender' name='Gender' />"
									+ "&nbsp;&nbsp;<a href='javascript:void(0)' class='easyui-linkbutton' id='txtGenderClear' onclick='$(\"#txtGender\").combobox(\"clear\");'>@Resources.Clear</a>"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								$("#txtGender").combobox({
									prompt: data.data[index].tip,
									required: data.data[index].isRequired,
									editable: false,
									valueField: "id",
									textField: "name",
									panelHeight: "auto",
									data: [{ "id": "@ConstValues.Gender.男", "name":"@Resources.Male" },
										{ "id":"@ConstValues.Gender.女", "name":"@Resources.Female" }]
								});
							}
							else if (data.data[index].key == "Title") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-combobox' style='height:27px; width:500px' id='txtTitle' name='Title' />"
									+ "&nbsp;&nbsp;<a href='javascript:void(0)' class='easyui-linkbutton' id='txtTitleClear' onclick='$(\"#txtTitle\").combobox(\"clear\");'>@Resources.Clear</a>"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								var orgCount = 0;
								$("#txtTitle").combobox({
									prompt: data.data[index].tip,
									required: data.data[index].isRequired,
									editable: false,
									valueField: "id",
									textField: "name",
									url: "@Url.Action(nameof(UtilityController.GetTitle), nameof(UtilityController).GetControllerName())"
											+ "?conferenceId=" + $("#hidConferenceId").val(),
									onLoadSuccess: function(data) {
										orgCount = data.length;
									},
									onShowPanel: function () {
										if (orgCount < 10) {
											$(this).combobox("panel").height("auto");
										} else {
											$(this).combobox("panel").height(200);
										}
									}
								});
							}
							else if (data.data[index].key == "Degree") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-combobox' style='height:27px; width:500px' id='txtDegree' name='Degree' />"
									+ "&nbsp;&nbsp;<a href='javascript:void(0)' class='easyui-linkbutton' id='txtDegreeClear' onclick='$(\"#txtDegree\").combobox(\"clear\");'>@Resources.Clear</a>"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								var orgCount = 0;
								$("#txtDegree").combobox({
									prompt: data.data[index].tip,
									required: data.data[index].isRequired,
									editable: false,
									valueField: "id",
									textField: "name",
									url: "@Url.Action(nameof(UtilityController.GetDegree), nameof(UtilityController).GetControllerName())",
									onLoadSuccess: function(data) {
										orgCount = data.length;
									},
									onShowPanel: function () {
										if (orgCount < 10) {
											$(this).combobox("panel").height("auto");
										} else {
											$(this).combobox("panel").height(200);
										}
									}
								});
							}
							else if (data.data[index].key == "Country") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-combobox' style='height:27px; width:500px' id='txtCountry' name='Country' />"
									+ "&nbsp;&nbsp;<a href='javascript:void(0)' class='easyui-linkbutton' id='txtCountryClear' onclick='$(\"#txtCountry\").combobox(\"clear\");'>@Resources.Clear</a>"
									+ "</div>"
									+ "<div class='clear'></div>"
									+ "<div class='titleDiv'>@Resources.State：</div>"
									+ "<div class='contentDiv'><input class='easyui-textbox' style='height:27px; width:500px' id='txtState' name='State' /></div>"
									+ "<div class='clear'></div>"
									+ "<div class='titleDiv'>@Resources.City：</div>"
									+ "<div class='contentDiv'><input class='easyui-textbox' style='height:27px; width:500px' id='txtCity' name='City' /></div>"
									+ "<div class='clear'></div>"
								);

								$("#txtCountry").combobox({
									prompt: data.data[index].tip,
									required: data.data[index].isRequired,
									valueField: "id",
									textField: "name",
									url: "@Url.Action(nameof(UtilityController.GetCountry), nameof(UtilityController).GetControllerName())",
								});

								$("#txtState").textbox({ validType: "length[1,100]" });
								$("#txtCity").textbox({ validType: "length[1,100]" });
							}
							else if (data.data[index].key == "AttendenceIdentity") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-combobox' style='height:27px; width:500px' id='txtAttendenceIdentity' name='AttendenceIdentityId' />"
									+ "&nbsp;&nbsp;<a href='javascript:void(0)' class='easyui-linkbutton' id='txtAttendenceIdentityClear' onclick='$(\"#txtAttendenceIdentity\").combobox(\"clear\");'>@Resources.Clear</a>"
									+ "</div>"
									+" <input type='hidden' id='applyIdentity'>"
									+ "<div class='clear'></div>"
								);

								var orgCount = 0;
								$("#txtAttendenceIdentity").combobox({
									prompt: data.data[index].tip,
									required: data.data[index].isRequired,
									editable: false,
									disabled: dt.data.hasPaid,
									valueField: "id",
									textField: "name",
									url: "@Url.Action(nameof(UtilityController.GetAttendenceIdentityType), nameof(UtilityController).GetControllerName())"
											+ "?conferenceId=" + $("#hidConferenceId").val(),
									onLoadSuccess: function(data) {
										orgCount = data.length;
									},
									onShowPanel: function () {
										if (orgCount < 10) {
											$(this).combobox("panel").height("auto");
										} else {
											$(this).combobox("panel").height(200);
										}
									},
									onSelect: function (newValue) {
										var applyIdentity = $("#applyIdentity").val()
										if (applyIdentity.indexOf(newValue.id) != -1 || $("#concurrentEventList").val() == "") {
											var loading = layer.load(0,  {
												shade: [0.4,"#fff"]
											});
											$("#concurrentEvent").empty()
											setConcurrentEvent(newValue.id, $("#hidCurrency").val())
											fillback(hasPaid, $("#concurrentEventList").val(), $("#concurrentEventCount").val(), loading);
										} else {
											$.messager.confirm("@Resources.Confirm", "@Resources.ChangeIdentityConfirmMsg", function (r) {
												if (r) {
													var loading = layer.load(0,  {
														shade: [0.4,"#fff"]
													});
													$("#concurrentEvent").empty()
													setConcurrentEvent(newValue.id, $("#hidCurrency").val())
													setTimeout(function () {
														var tableList = document.getElementsByName("eventTable")
														for (var i = 0; i < tableList.length; i++) {
															var tableId = tableList[i].id
															$("#"+tableId).show();
														}
														layer.close(loading);
													}, 1000);
												} else {
													$("#txtAttendenceIdentity").combobox("setValue", $("#hidIdentityId").val())
												}
											});
										}
									}
								});
								if (hasPaid == "true") {
									$("#txtAttendenceIdentityClear").hide();
								}
							}
							else if (data.data[index].key == "Attendence") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-combogrid' style='height:27px; width:500px' id='txtAttendence' name='AttendenceFeeId' />"
									+ "&nbsp;&nbsp;<a href='javascript:void(0)' class='easyui-linkbutton' id='txtAttendenceClear' onclick='$(\"#txtAttendence\").combogrid(\"clear\");'>@Resources.Clear</a>"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								var orgCount = 0;
								$("#txtAttendence").combogrid({
									prompt: data.data[index].tip,
									required: data.data[index].isRequired,
									editable: false,
									disabled: dt.data.hasPaid,
									idField: "id",
									textField: "name",
									url: "@Url.Action(nameof(UtilityController.GetFeeAttendence), nameof(UtilityController).GetControllerName())"
											+ "?conferenceId=" + $("#hidConferenceId").val() + "&currency=" + $("#hidCurrency").val(),
									columns:[[
										{ field: "id", hidden: true },
										{ field: "name", title: "@Resources.AttendenceIdentity", width: 238 },
										{ field: "currency", title: "@Resources.Currency", width: 80 },
										{ field: "price", title: "@Resources.Price", width: 60 },
										{ field: "discount", title: "@Resources.Discount", width: 120 }
									]],
									onLoadSuccess: function(data) {
										orgCount = data.length;
									},
									onShowPanel: function () {
										if (orgCount < 10) {
											$(this).combogrid("panel").height("auto");
										} else {
											$(this).combogrid("panel").height(200);
										}
									}
								});
								if (hasPaid == "true") {
									$("#txtAttendenceClear").hide();
								}
							}
							else if (data.data[index].key == "Page") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-combogrid' style='height:27px; width:500px' id='txtPage' name='PageFeeId' />"
									+ "&nbsp;&nbsp;<a href='javascript:void(0)' class='easyui-linkbutton' id='txtPageClear' onclick='$(\"#txtPage\").combogrid(\"clear\");'>@Resources.Clear</a>"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								var orgCount = 0;
								$("#txtPage").combogrid({
									prompt: data.data[index].tip,
									required: data.data[index].isRequired,
									editable: false,
									disabled: dt.data.hasPaid,
									idField: "id",
									textField: "name",
									url: "@Url.Action(nameof(UtilityController.GetFeePage), nameof(UtilityController).GetControllerName())"
											+ "?conferenceId=" + $("#hidConferenceId").val() + "&currency=" + $("#hidCurrency").val(),
									columns:[[
										{ field: "id", hidden: true },
										{ field: "name", title: "@Resources.FeeName", width: 358 },
										{ field: "currency", title: "@Resources.Currency", width: 80 },
										{ field: "price", title: "@Resources.Price", width: 60 }
									]],
									onLoadSuccess: function(data) {
										orgCount = data.length;
									},
									onShowPanel: function () {
										if (orgCount < 10) {
											$(this).combogrid("panel").height("auto");
										} else {
											$(this).combogrid("panel").height(200);
										}
									}
								});
								if (hasPaid == "true") {
									$("#txtPageClear").hide();
								}
							}
							else if (data.data[index].key == "Meal") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-combogrid' style='height:27px; width:500px' id='txtMeal' name='MealFeeId' />"
									+ "&nbsp;&nbsp;<a href='javascript:void(0)' class='easyui-linkbutton' id='txtMealClear' onclick='$(\"#txtMeal\").combogrid(\"clear\");'>@Resources.Clear</a>"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								var orgCount = 0;
								$("#txtMeal").combogrid({
									prompt: data.data[index].tip,
									required: data.data[index].isRequired,
									editable: false,
									disabled: dt.data.hasPaid,
									idField: "id",
									textField: "name",
									url: "@Url.Action(nameof(UtilityController.GetFeeMeal), nameof(UtilityController).GetControllerName())"
											+ "?conferenceId=" + $("#hidConferenceId").val() + "&currency=" + $("#hidCurrency").val(),
									columns:[[
										{ field: "id", hidden: true },
										{ field: "name", title: "@Resources.FeeName", width: 238 },
										{ field: "currency", title: "@Resources.Currency", width: 80 },
										{ field: "price", title: "@Resources.Price", width: 60 },
										{ field: "count", title: "@Resources.EatTotalTimes", width: 120 },
									]],
									onLoadSuccess: function(data) {
										orgCount = data.length;
									},
									onShowPanel: function () {
										if (orgCount < 10) {
											$(this).combogrid("panel").height("auto");
										} else {
											$(this).combogrid("panel").height(200);
										}
									}
								});
								if (hasPaid == "true") {
									$("#txtMealClear").hide();
								}
							}
							else if (data.data[index].key == "Other") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input type='button' class='abtn' onclick='openOtherFee("+hasPaid+");' value='@Resources.CreateOtherFee' />"
									+ "</div>"
									+ "<div class='clear'></div>"
								);
							}
							else if (data.data[index].key == "InvoiceTitle") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-combobox' style='height:27px; width:500px' id='txtInvoiceTitle' name='InvoiceTitle' />"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								var orgCount = 0;
								$("#txtInvoiceTitle").combobox({
									url: "@Url.Action(nameof(UtilityController.GetInvoiceInfo), nameof(UtilityController).GetControllerName())",
									prompt: data.data[index].tip,
									required: data.data[index].isRequired,
									valueField: "invoiceTitle",
									textField: "invoiceTitle",
									panelHeight: "auto",
									hasDownArrow: false,
									onLoadSuccess: function(data) {
										orgCount = data.length;
									},
									onChange: function (n,o) {
										$("#txtTaxNum").textbox("setValue", "");
										$("#txtAddressAndTel").textbox("setValue", "");
										$("#txtBank").textbox("setValue", "");
										$("#txtBankAccount").textbox("setValue", "");
									},
									onSelect: function (rec) {
										$("#txtTaxNum").textbox("setValue", rec.taxNum);
										$("#txtAddressAndTel").textbox("setValue", rec.addressAndTel);
										$("#txtBank").textbox("setValue", rec.bank);
										$("#txtBankAccount").textbox("setValue", rec.bankAccount);
									},
									onShowPanel: function () {
										if (orgCount < 10) {
											$(this).combobox("panel").height("auto");
										} else {
											$(this).combobox("panel").height(200);
										}
									},
									onHidePanel: function () { }
								});
							}
							else if (data.data[index].key == "TaxNum") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-textbox' style='height:27px; width:500px' id='txtTaxNum' name='TaxNum' />"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								$("#txtTaxNum").textbox({
									prompt: data.data[index].tip,
									required: data.data[index].isRequired
								});
							}
							else if (data.data[index].key == "AddressAndTel") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-textbox' style='height:27px; width:500px' id='txtAddressAndTel' name='AddressAndTel' />"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								$("#txtAddressAndTel").textbox({
									prompt: data.data[index].tip,
									required: data.data[index].isRequired
								});
							}
							else if (data.data[index].key == "Bank") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-textbox' style='height:27px; width:500px' id='txtBank' name='Bank' />"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								$("#txtBank").textbox({
									prompt: data.data[index].tip,
									required: data.data[index].isRequired
								});
							}
							else if (data.data[index].key == "BankAccount") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-textbox' style='height:27px; width:500px' id='txtBankAccount' name='BankAccount' />"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								$("#txtBankAccount").textbox({
									prompt: data.data[index].tip,
									required: data.data[index].isRequired
								});
							}
							else if (data.data[index].key == "InvoiceId") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-combobox' style='height:27px; width:500px' id='txtInvoice' name='InvoiceId' />"
									+ "&nbsp;&nbsp;<a href='javascript:void(0)' class='easyui-linkbutton' id='txtInvoiceClear' onclick='$(\"#txtInvoice\").combobox(\"clear\");'>@Resources.Clear</a>"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								var orgCount = 0;
								$("#txtInvoice").combobox({
									prompt: data.data[index].tip,
									required: data.data[index].isRequired,
									editable: false,
									valueField: "id",
									textField: "name",
									url: "@Url.Action(nameof(UtilityController.GetInvoiceTitle), nameof(UtilityController).GetControllerName())"
											+ "?conferenceId=" + $("#hidConferenceId").val(),
									onLoadSuccess: function(data) {
										orgCount = data.length;
									},
									onShowPanel: function () {
										if (orgCount < 10) {
											$(this).combobox("panel").height("auto");
										} else {
											$(this).combobox("panel").height(200);
										}
									}
								});
							}
							else if (data.data[index].key == "FavouriteTopic") {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-combobox' style='height:27px; width:500px' id='txtFavouriteTopic' name='FavouriteTopic' />"
									+ "&nbsp;&nbsp;<a href='javascript:void(0)' class='easyui-linkbutton' id='txtFavouriteTopicClear' onclick='$(\"#txtFavouriteTopic\").combobox(\"clear\");'>@Resources.Clear</a>"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								var orgCount = 0;
								$("#txtFavouriteTopic").combobox({
									prompt: data.data[index].tip,
									required: data.data[index].isRequired,
									editable: false,
									multiple: true,
									valueField: "id",
									textField: "name",
									url: "@Url.Action(nameof(UtilityController.GetTopic), nameof(UtilityController).GetControllerName())"
											+ "?conferenceId=" + $("#hidConferenceId").val(),
									onLoadSuccess: function(data) {
										orgCount = data.length;
									},
									onShowPanel: function () {
										if (orgCount < 10) {
											$(this).combobox("panel").height("auto");
										} else {
											$(this).combobox("panel").height(200);
										}
									},
									onHidePanel: function () { }
								});
							}
							else if (data.data[index].key == "ConcurrentEvent") {
								$("#ctnForm").append("<div class='titleDiv' >" +  data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv' id='concurrentEvent' style='height:100%'>"
									+ " <input type='hidden' id='hidEventIdList' name='hidEventIdList'>"
									+ " <input type='hidden' id='hidCountList' name='hidCountList'>"
									+ "</div>"
									+ "<div class='clear'></div>"
								);
							}
							else if (data.data[index].key == "PaymentType") {
								if ($("#divCurrency").css("display") != "none") {
									$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
										+ "<div class='contentDiv'>"
										+ "<input class='easyui-combobox' style='height:27px; width:500px' id='txtPaymentType' name='PaymentTypeId' />"
										+ "&nbsp;&nbsp;<a href='javascript:void(0)' class='easyui-linkbutton' id='txtPaymentTypeClear' onclick='$(\"#txtPaymentType\").combobox(\"clear\");'>@Resources.Clear</a>"
										+ "</div>"
										+ "<div class='clear'></div>"
									);

									var orgCount = 0;
									$("#txtPaymentType").combobox({
										prompt: data.data[index].tip,
										required: data.data[index].isRequired,
										editable: false,
										valueField: "id",
										textField: "name",
										url: "@Url.Action(nameof(UtilityController.GetPayType), nameof(UtilityController).GetControllerName())"
												+ "?conferenceId=" + $("#hidConferenceId").val(),
										onLoadSuccess: function(data) {
											orgCount = data.length;
										},
										onShowPanel: function () {
											if (orgCount < 10) {
												$(this).combobox("panel").height("auto");
											} else {
												$(this).combobox("panel").height(200);
											}
										}
									});
								}
							}
							else {
								$("#ctnForm").append("<div class='titleDiv'>" + data.data[index].displayName + "：</div>"
									+ "<div class='contentDiv'>"
									+ "<input class='easyui-textbox' style='height:27px; width:500px' id='txt" + data.data[index].key + "' name='" + data.data[index].key + "' />"
									+ "</div>"
									+ "<div class='clear'></div>"
								);

								if (data.data[index].key.indexOf("Customize") >= 0) {
									$("#txt" + data.data[index].key).textbox({
										prompt: data.data[index].tip,
										required: data.data[index].isRequired
									});
								} else {
									$("#txt" + data.data[index].key).textbox({
										prompt: data.data[index].tip,
										required: data.data[index].isRequired,
										validType: "length[1,100]"
									});
								}
							}
						}

						//取同期活动
						setConcurrentEvent(dt.data.attendenceIdentityId, dt.data.currency);

						if (dt.data.hasInvoiced == false) {
							$("#txtInvoiceTitle").combobox({ disabled: false });
							$("#txtTaxNum").textbox({ disabled: false });
							$("#txtAddressAndTel").textbox({ disabled: false });
							$("#txtBank").textbox({ disabled: false });
							$("#txtBankAccount").textbox({ disabled: false });
						} else {
							$("#txtInvoiceTitle").combobox({ disabled: true });
							$("#txtTaxNum").textbox({ disabled: true });
							$("#txtAddressAndTel").textbox({ disabled: true });
							$("#txtBank").textbox({ disabled: true });
							$("#txtBankAccount").textbox({ disabled: true });
						}

						$("#txtMail").textbox("setValue", dt.data.mail);
						$("#txtFamilyName").textbox("setValue", dt.data.familyName);
						$("#txtFirstName").textbox("setValue", dt.data.firstName);
						$("#txtFullName").textbox("setValue", dt.data.fullName);
						$("#txtGender").combobox("setValue", dt.data.gender ? "@ConstValues.Gender.男" : "@ConstValues.Gender.女");
						$("#txtTitle").combobox("setValue", dt.data.title);
						$("#txtDegree").combobox("setValue", dt.data.degree);
						$("#txtJob").textbox("setValue", dt.data.job);
						$("#txtAffiliation").textbox("setValue", dt.data.affiliation);
						$("#txtDepartment").textbox("setValue", dt.data.department);
						$("#txtCountry").combobox("setValue", dt.data.country);
						$("#txtState").textbox("setValue", dt.data.state);
						$("#txtCity").textbox("setValue", dt.data.city);
						$("#txtAddress").textbox("setValue", dt.data.address);
						$("#txtZipCode").textbox("setValue", dt.data.zipCode);
						$("#txtTelephone").textbox("setValue", dt.data.telephone);
						$("#txtMobile").textbox("setValue", dt.data.mobile);
						$("#txtCardId").textbox("setValue", dt.data.cardId);
						$("#txtAttendenceIdentity").combobox("setValue", dt.data.attendenceIdentityId);
						$("#applyIdentity").val(dt.data.applyIdentity);
						$("#hidIdentityId").val(dt.data.attendenceIdentityId);
						$("#txtInvoiceTitle").combobox("setValue", dt.data.invoiceTitle);
						$("#txtInvoiceTitle").combobox("setText", dt.data.invoiceTitle);
						$("#txtTaxNum").textbox("setValue", dt.data.taxNum);
						$("#txtAddressAndTel").textbox("setValue", dt.data.addressAndTel);
						$("#txtBank").textbox("setValue", dt.data.bank);
						$("#txtBankAccount").textbox("setValue", dt.data.bankAccount);
						$("#txtInvoice").combobox("setValue", dt.data.invoiceId);
						if (dt.data.favouriteTopic != "") {
							$("#txtFavouriteTopic").combobox("setValues", dt.data.favouriteTopic);
						}
						$("#txtAttendence").combogrid("setValue", dt.data.attendenceFeeId);
						$("#txtPage").combogrid("setValue", dt.data.pageFeeId);
						$("#txtMeal").combogrid("setValue", dt.data.mealFeeId);
						$("#txtCustomize1").textbox("setValue", dt.data.customize1);
						$("#txtCustomize2").textbox("setValue", dt.data.customize2);
						$("#txtCustomize3").textbox("setValue", dt.data.customize3);
						$("#txtCustomize4").textbox("setValue", dt.data.customize4);
						$("#txtCustomize5").textbox("setValue", dt.data.customize5);
						$("#txtCustomize6").textbox("setValue", dt.data.customize6);
						$("#txtCustomize7").textbox("setValue", dt.data.customize7);
						$("#txtCustomize8").textbox("setValue", dt.data.customize8);
						$("#txtCustomize9").textbox("setValue", dt.data.customize9);
						$("#txtCustomize10").textbox("setValue", dt.data.customize10);

						$("#concurrentEventList").val(dt.data.concurrentEventList);
						$("#concurrentEventCount").val(dt.data.concurrentEventCount);
						$("#txtPaymentType").combobox("setValue", dt.data.paymentTypeId);

						//同期活动回填值
						fillback(hasPaid, dt.data.concurrentEventList, dt.data.concurrentEventCount, loading);
					}
				});
			}
		});
		$("#detailWindow").window("open");
	}

	function setConcurrentEvent(identityId, currency) {
		//取同期活动
		var newUrl = "@Url.Action(nameof(UtilityController.GetConcurrentEvent),
			nameof(UtilityController).GetControllerName())"
			+ "?conferenceId=" + $("#hidConferenceId").val()
			+ "&identity=" + identityId
			+ "&currency=" + currency;
		$.get(newUrl, null, function (data, textStatus, jqXHR) {
			if (data.result == "@ConstValues.AjaxSuccessResult") {
				for (var j = 0; j < data.data.length; j++) {
					if (data.data[j].hasEvent) {
						var divText = "";
						divText +="<table id='eventTable"+j+"' name='eventTable' style='font-size:16px;margin-bottom:30px;width:500px' hidden>"
						divText +=" <tr>"
						divText += " <td valign='top' rowspan='6' style='width:13px'><input type='checkbox' id='eventCheckBox"+j+"' name='eventCheckBox' onchange='selectEvent(this)' style='margin-top:5px'></td>"
						if (data.data[j].link == null) {
							divText += " <td style='padding-left:30px'> "+data.data[j].eventName+"</td>"
						}else{
							divText += " <td style='padding-left:30px'> <a href='"+data.data[j].link+"' style='color:#1874CD;text-decoration:underline;' target='_blank'>"+data.data[j].eventName+"</a></td>"
						}
						divText += " </tr>"
						divText += " <tr>"
						divText += " <td style='padding-left:30px'>@Resources.Time："+data.data[j].eventTime+"</td>"
						divText += " <input type='hidden' id='eventPrice"+j+"' value='"+data.data[j].price+"'>"
						divText += " <input type='hidden' id='eventCurrency"+j+"' value='"+data.data[j].currency+"'>"
						divText += " <input type='hidden' id='eventId"+j+"' value='"+data.data[j].id+"' name='"+data.data[j].id+"'>"
						divText += " </tr>"
						divText += " <tr>"
						divText += " <td style='padding-left:30px'>@Resources.Place："+data.data[j].eventPlace+"</td>"
						divText += " </tr>"
						if (data.data[j].contact != "" || data.data[j].contactPhone != "") {
							var contactText = data.data[j].contact;
							if (data.data[j].contact != "" && data.data[j].contactPhone != "") {
								contactText += " ,  "
							}
							contactText += data.data[j].contactPhone

							divText += " <tr>"
							divText += " <td style='padding-left:30px'>@Resources.ContactInfomation："+contactText+"</td>"
							divText += " </tr>"
						}

						divText += " <tr>"
						divText += " <td style='padding-left:30px'>@Resources.Fee："+data.data[j].fee +"</td>"
						divText += " </tr>"
						divText += " <tr>"
						divText += " <td style='padding-left:30px'>@Resources.AttandenceCount：<input class='easyui-combobox' style='height:27px; width:60px' id='eventNumber"+j+"' name='eventNumber' /></td>"
						divText += " </tr>"
						divText += " </table>"

						$("#concurrentEvent").append(divText);

						$("#eventNumber"+j).combobox({
							editable: false,
							valueField: "id",
							textField: "name",
							data:[{}],
							onLoadSuccess: function(data) {
								orgCount = data.length;
							},
							onShowPanel: function () {
								if (orgCount < 5) {
									$(this).combobox("panel").height("auto");
								} else {
									$(this).combobox("panel").height(200);
								}
							},
							onChange:function(){
								countPrice();
							}
						});
						var comboboxData = [];
						if (data.data[j].number != null) {
							for (var k = 1 ; k<=data.data[j].number;k++) {
								var map = {}
								map.id = k;
								map.name = k;
								comboboxData.push(map)
							}
						}
						$("#eventNumber"+j).combobox("loadData", comboboxData)
						$("#eventNumber"+j).combobox("setValue", "")
						$("#eventNumber"+j).combobox("readonly", true);
					}
				}
			}
		});
	}

	function fillback(hasPaid, eventList, eventCount, loading) {
		var concurrentEventList = [];
		var concurrentEventCount = [];
		if (eventList != null && eventList != "") {
			concurrentEventList = eventList.split(",");
		}
		if (eventCount != null && eventCount != "") {
			concurrentEventCount = eventCount.split(",");
		}

		if (hasPaid == "true") {
			setTimeout(function () {
				for(var i = 0; i < concurrentEventList.length; i++) {
					var obj = document.getElementsByName(concurrentEventList[i])[0];
					if (obj != null) {
						var number = obj.id.substr(obj.id.length-1, 1)
						document.getElementById("eventCheckBox"+number).checked = true;
						$("#eventNumber"+number).combobox("select", concurrentEventCount[i]);
						$("#eventNumber"+number).combobox("readonly", true);
						document.getElementById("eventCheckBox"+number).disabled = true;
						var tableList = document.getElementsByName("eventTable");
						for(var j = 0; j < tableList.length; j++) {
							var tableId = tableList[j].id;
							if (number == tableId.substr(tableId.length - 1, 1).toString()) {
								$("#eventTable"+number).show();
							}
						}
					}
				}
				layer.close(loading);
			}, 1000);
		} else {
			setTimeout(function () {
				var tableList = document.getElementsByName("eventTable");
				for (var i = 0; i < tableList.length; i++) {
					var tableId = tableList[i].id
					$("#"+tableId).show();
				}

				for (var i = 0; i < concurrentEventList.length; i++) {
					var obj = document.getElementsByName(concurrentEventList[i])[0];
					if (obj != null) {
						var number = obj.id.substr(obj.id.length-1, 1);
						document.getElementById("eventCheckBox"+number).checked = true;
						$("#eventNumber"+number).combobox("select", concurrentEventCount[i]);
						$("#eventNumber"+number).combobox("readonly", false);
					}
				}
				layer.close(loading);
			}, 1000);
		}
	}

	function countPrice() {
		var checkboxList = document.getElementsByName("eventCheckBox")
		var eventIdList = "";
		var countList = "";
		var currency = $("#eventCurrency").val();
		if (currency == "@ConstValues.Currency.美元") {
			currency = "@Resources.Dollar";
		} else {
			currency = "@Resources.Yuan";
		}
		for (var i = 0; i < checkboxList.length; i++) {
			var checkbox = checkboxList[i];
			if (checkbox.checked == true) {
				var lastndex = checkboxList[i].id.substr(checkboxList[i].id.length-1, 1);
				if (eventIdList == "") {
					eventIdList += $("#eventId"+lastndex).val();
					countList += $("#eventNumber"+lastndex).combobox("getValue");
				} else {
					eventIdList += ","+$("#eventId"+lastndex).val();
					countList += ","+$("#eventNumber"+lastndex).combobox("getValue");
				}
			}
		}
		$("#hidEventIdList").val(eventIdList);
		$("#hidCountList").val(countList);
	}

	function selectEvent(obj) {
		var number = obj.id.substr(obj.id.length-1, 1)
		if (obj.checked) {
			$("#eventNumber"+number).combobox("select", 1);
			$("#eventNumber"+number).combobox("readonly", false);

		} else {
			$("#eventNumber"+number).combobox("setValue", "")
			$("#eventNumber"+number).combobox("readonly", true);
		}
	}

	function openOtherFee(hasPaid) {
		$("#ddlFeeName").combogrid("setValue", "");
		$("#ddlCount").combobox("setValue", "");
		$("#txtPrice").textbox("setValue", "");
		$("#txtCurrency").textbox("setValue", "");

		var orgCount = 0;
		$("#ddlFeeName").combogrid({
			required: true,
			editable: false,
			idField: "id",
			textField: "name",
			url: "@Url.Action(nameof(UtilityController.GetFeeOther), nameof(UtilityController).GetControllerName())"
					+ "?conferenceId=" + $("#hidConferenceId").val() + "&currency=" + $("#hidCurrency").val(),
			columns:[[
				{ field: "id", hidden: true },
				{ field: "name", title: "@Resources.FeeName", width: 170 },
				{ field: "currency", title: "@Resources.Currency", width: 100 },
				{ field: "price", title: "@Resources.Price", width: 100 },
				{ field: "minCount", title: "@Resources.MinCount", width: 100 },
				{ field: "maxCount", title: "@Resources.MaxCount", width: 100 },
				{ field: "recommendation", title: "@Resources.Recommendation", width: 200 },
			]],
			onLoadSuccess: function(data) {
				orgCount = data.length;
			},
			onShowPanel: function () {
				if (orgCount < 10) {
					$(this).combogrid("panel").height("auto");
				} else {
					$(this).combogrid("panel").height(200);
				}
			},
			onSelect: function(rowIndex, rowData) {
				$("#txtPrice").textbox("setValue", rowData.price);
				$("#txtCurrency").textbox("setValue", rowData.currency);

				var data = [];
				for ( var index = rowData.minCount; index <= rowData.maxCount; index++) {
					data.push({"index": index});
				}

				$("#ddlCount").combobox({
					data:data,
					editable: false,
					required: true,
					valueField: "index",
					textField: "index"
				});
			}
		});

		if (hasPaid == true) {
			$("#ddlFeeName").combogrid("readonly", true);
			$("#ddlCount").combobox("readonly", true);
			$("#addOtherFeeBtn").hide();
			$("#cancelOtherFeeBtn").hide();
		} else {
			$("#ddlFeeName").combogrid("readonly", false);
			$("#ddlCount").combobox("readonly", false);
			$("#addOtherFeeBtn").show();
			$("#cancelOtherFeeBtn").show();
		}

		$("#otherFeeDG").datagrid({
			url: "@Url.Action(nameof(ProfileAttendenceInfoController.GetOtherFeeData),
					nameof(ProfileAttendenceInfoController).GetControllerName())",
			method: "get",
			fitColumns: true,
			height: 349,
			nowrap: false,
			striped: true,
			columns: [[
				{
					field: "operate", title: "@Resources.Operate", align: "center", width: 150,
					formatter: function(value, rec, index) {
						var tmp = rec.feeName == null ? "" : rec.feeName.replace(new RegExp("'",'g'),"’").replace(new RegExp('"','g'),"“");
						var strInfo = "<a href='#' style='color:#DC143C;font-weight:bold;text-decoration:underline;' onclick='deleteOtherFee(\""
							+ rec.id + "\",\"" + tmp + "\")'>@Resources.Delete</a>";
						return strInfo;
					}
				},
				{ field: "id", hidden: true },
				{ field: "feeName", title: "@Resources.FeeName", align: "center", width: 150 },
				{ field: "count", title: "@Resources.Count", align: "center", width: 100 },
				{ field: "unitPrice", title: "@Resources.UnitPrice", align: "center", width: 100 },
				{ field: "currency", title: "@Resources.Currency", align: "center", width: 100 },
				{ field: "price", title: "@Resources.Price", align: "center", width: 100 },
			]],
			onBeforeLoad: function(param) {
				param.id = $("#hidAttendenceId").val();
				param.random = Math.random();
			},
		});

		$("#otherFeeWindow").window("open");
	}

	function addOtherFee() {
		$("#hidFeeAttendenceId").val($("#hidAttendenceId").val());
		var isValid = $("#frmFee").form("validate");

		if (isValid) {
			$.messager.confirm("@Resources.Submit", "@Resources.CfmSave", function (r) {
				if (r) {
					var loading = layer.load(0,  {
						shade: [0.4,"#fff"]
					});
					$.post("@Url.Action(nameof(ProfileAttendenceInfoController.CreateOtherFee),
							nameof(ProfileAttendenceInfoController).GetControllerName())",
						$("#frmFee").serialize(),
						function(data, textStatus, jqXHR) {
							layer.close(loading);
							if (data.result == "@ConstValues.AjaxFailResult") {
								common.showError(data.message);
							} else {
								common.showSuccess(data.message, true);
								$("#otherFeeDG").datagrid("reload");

								$("#ddlFeeName").combobox("setValue", "");
								$("#ddlCount").combobox("setValue", "");
								$("#txtPrice").textbox("setValue", "");
								$("#txtCurrency").textbox("setValue", "");
							}
						}
					);
				}
			});
		}
	}

	function deleteOtherFee(id, name) {
		var confirmMessage = "@Resources.CfmDelete";
		confirmMessage = confirmMessage.replace(/\{0\}/g, name);
		$.messager.confirm("@Resources.Delete", confirmMessage, function (r) {
			if (r) {
				$("#hidFeeId").val(id);
				$.post("@Url.Action(nameof(ProfileAttendenceInfoController.DeleteOtherFee),
						nameof(ProfileAttendenceInfoController).GetControllerName())",
					$("#frmFee").serialize(),
					function(data, textStatus, jqXHR) {
						if (data.result == "@ConstValues.AjaxFailResult") {
							common.showError(data.message);
						} else {
							common.showSuccess(data.message, true);
							$("#otherFeeDG").datagrid("reload");
						}
					}
				);
			}
		});
	}

	function saveData() {
		var isValid = $("#frmForm").form("validate");

		if (isValid) {
			$.messager.confirm("@Resources.Save", "@Resources.CfmSave", function (r) {
				if (r) {
					var loading = layer.load(0,  {
						shade: [0.4,"#fff"]
					});

					$("#frmForm").form({
						iframe: false,
						success: function (data) { }
					});

					$("#frmForm").form("submit", {
						url: "@Url.Action(nameof(ProfileAttendenceInfoController.Modify), nameof(ProfileAttendenceInfoController).GetControllerName())",
						onSubmit: function (param) {
							param.random = Math.random();
						},
						success: function(data) {
							layer.close(loading);
							var data = eval("(" + data + ")");
							if (data.result == "@ConstValues.AjaxFailResult") {
								common.showError(data.message);
							} else {
								common.showSuccess(data.message, true);
								$("#detailWindow").window("close");
								$("#dataGrid").datagrid("reload");
							}
						}
					});
				}
			});
		}
	}

	function payOnLine(conferenceId, attendenceId, paymentId, payStatus) {
		$("#hidPayConferenceId").val(conferenceId);
		$("#hidPayAttendenceId").val(attendenceId);

		$("#paymentDG").datagrid({
			url: "@Url.Action(nameof(ProfileAttendenceInfoController.GetPaymentInfoData),
					nameof(ProfileAttendenceInfoController).GetControllerName())" + "/" + attendenceId,
			method: "get",
			singleSelect: true,
			fitColumns: true,
			nowrap: false,
			pagination: false,
			pageSize: 10,
			striped: true,
			columns: [[
				{ field: "number", title: "", align: "center", halign: "center", width: 50 },
				{ field: "name", title: "@Resources.FeeName", align: "left", halign: "center", width: 700 },
				{ field: "currency", title: "", align: "center", halign: "center", width: 50 },
				{
					field: "fee", title: "@Resources.Fee", align: "left", halign: "center", width: 350,
					formatter:function(value,rec){
						if (value == null) {
							return "--"
						}
						value = value.toFixed(2).replace(/\d(?=(?:\d{3})+\b)/g,'$&,');
						return value;
					}
				},
			]],
			onLoadSuccess: function(data) {
				if (data.rows.length > 0) {
					$(this).datagrid("appendRow", {
						number: "@Resources.TotalFee：",
						currency:  data.rows[0].currency,
						name: null,
						fee: compute("fee",$(this)) ,
					});

					var tr = $(this).datagrid("getPanel").find("div.datagrid-body tr");
					var lastIndex = tr.length - 1;
					var lastTdIndex = (tr.length / 2  )- 1
					tr.find("td:eq(0)")[lastIndex].setAttribute("colspan", "2");
					tr.find("td:eq(1)")[lastIndex].remove();
					tr.find("div:eq(0)")[lastIndex].setAttribute("class", "");
					tr.find("div:eq(0)")[lastIndex].setAttribute("style", "font-size:14px;text-align:right");
				}
			},
		});

		$("#paymentRecordDG").datagrid({
			url: "@Url.Action(nameof(ProfileAttendenceInfoController.GetPaymentRecord),
					nameof(ProfileAttendenceInfoController).GetControllerName())" + "/" + attendenceId,
			method: "get",
			singleSelect: true,
			fitColumns: true,
			nowrap: false,
			pagination: false,
			pageSize: 10,
			striped: true,
			columns: [[
				{ field: "createDate", title: "@Resources.PayDate", align: "center", width: 300 },
				{ field: "currency", title: "", align: "center", width: 50 },
				{ field: "fee", title: "@Resources.Fee", align: "center", width: 400 },
				{ field: "feeStatus", title: "@Resources.PayStatus", align: "center", width: 400 },
			]]
		});

		if (payStatus == "true") {
			$("#ddlPayType").combobox({
				required: true,
				editable: false,
				valueField: "id",
				textField: "name",
				url: "@Url.Action(nameof(UtilityController.GetOnlinePayType), nameof(UtilityController).GetControllerName())"
						+ "?conferenceId=" + conferenceId,
				onLoadSuccess: function(data) {
					orgCount = data.length;
					for (var index = 0; index < data.length; index++) {
						if (data[index].id == paymentId) {
							$("#ddlPayType").combobox("setValue", paymentId);
						}
					}
				},
				onShowPanel: function () {
					if (orgCount < 10) {
						$(this).combobox("panel").height("auto");
					} else {
						$(this).combobox("panel").height(200);
					}
				}
			});
			$("#ddlPayType").combobox("readonly", false);
			$("#payButton").show();
		} else {
			$("#ddlPayType").combobox({
				readonly: true,
				editable: false,
				valueField: "id",
				textField: "name",
				url: "@Url.Action(nameof(UtilityController.GetPayType), nameof(UtilityController).GetControllerName())"
						+ "?conferenceId=" + conferenceId,
			});
			$("#ddlPayType").combobox("setValue", paymentId);
			$("#payButton").hide();
		}

		$("#payWindow").window("open");
	}

	function pay() {
		var isValid = $("#frmPay").form("validate");
		var payType = $("#ddlPayType").combobox("getText");
		var conferenceId = $("#hidPayConferenceId").val();
		var attendenceId = $("#hidPayAttendenceId").val();

		if (isValid) {
			if (payType == "@ConstValues.PayType.AliPay" || payType == "@ConstValues.PayType.支付宝") {
				var url = "@Url.Action(nameof(ProfileAttendenceInfoController.Alipay),
					nameof(ProfileAttendenceInfoController).GetControllerName())"
					+ "?conferenceId=" + conferenceId +  "&attendenceId=" + attendenceId;
				$.get(encodeURI(url), null, function (data, textStatus, jqXHR) {
					if (data.result == "@ConstValues.AjaxFailResult") {
						common.showError(data.message);
					} else {
						$("#hidtotal_fee").val(data.data.fee);
						$("#hidservice").val(data.data.service);
						$("#hidpartner").val(data.data.partner);
						$("#hidseller_id").val(data.data.seller_id);
						$("#hid_input_charset").val(data.data.input_charset);
						$("#hidpayment_type").val(data.data.payment_type);
						$("#hidnotify_url").val(data.data.notify_url);
						$("#hidreturn_url").val(data.data.return_url);
						$("#hidsign_type").val(data.data.sign_type);
						$("#hidsign").val(data.data.sign);
						$("#hidsubject").val(data.data.subject);
						$("#hidout_trade_no").val(data.data.out_trade_no);
						$("#hidbody").val(data.data.body);
						document.forms["alipaysubmit"].submit();
					}
				});
			} else if (payType == "@ConstValues.PayType.PayEase" || payType == "@ConstValues.PayType.易支付") {
				var url = "@Url.Action(nameof(ProfileAttendenceInfoController.Epay),
					nameof(ProfileAttendenceInfoController).GetControllerName())"
					+ "?conferenceId=" + conferenceId +  "&attendenceId=" + attendenceId;
				$.get(encodeURI(url), null, function (data, textStatus, jqXHR) {
					if (data.result == "@ConstValues.AjaxFailResult") {
						common.showError(data.message);
					} else {
						$("#v_mid").val(data.data.tenantId);//商户编号
						$("#v_oid").val(data.data.v_oid);//订单编号
						$("#v_rcvname").val(data.data.tenantId);//收货人姓名
						$("#v_rcvaddr").val(data.data.tenantAddress);//收货人地址
						$("#v_rcvtel").val(data.data.tenantPhone);//收货人电话
						$("#v_rcvpost").val(data.data.postcode);//编码
						$("#v_amount").val(data.data.fee);//订单金额
						$("#v_ymd").val(data.data.createDate);//订单日期
						$("#v_orderstatus").val("1");//配货状态
						$("#v_ordername").val(data.data.v_ordername);//订货人姓名
						$("#v_moneytype").val(data.data.v_moneytype);//支付币种
						$("#v_url").val(data.data.v_url);//返回地址
						$("#v_md5info").val(data.data.v_md5info);//订单加密
						$("#v_language").val(data.data.v_language);
						document.forms["epaysubmit"].submit();
					}
				});
			} else if (payType == "@ConstValues.PayType.PayPal" || payType == "@ConstValues.PayType.贝宝") {
				var url = "@Url.Action(nameof(ProfileAttendenceInfoController.Paypal),
					nameof(ProfileAttendenceInfoController).GetControllerName())"
					+ "?conferenceId=" + conferenceId +  "&attendenceId=" + attendenceId;
				$.get(encodeURI(url), null, function (data, textStatus, jqXHR) {
					if (data.result == "@ConstValues.AjaxFailResult") {
						common.showError(data.message);
					} else {
						$("#p_business").val(data.data.business);//paypay帐号
						$("#p_cert_id").val(data.data.cert_id);//证书号
						$("#p_item_name").val(data.data.item_name);//订单信息
						$("#p_item_number").val(data.data.item_number);//订单编号
						$("#p_amount").val(data.data.amount);//订单总金额
						$("#p_currency_code").val("USD");//订单币种
						$("#p_charset").val("utf-8");//编码格式
						$("#p_return").val("@ConstValues.PaySuccess");//返回的路径
						$("#p_cancel_return").val(data.data.cancel_return);//取消后返回的页面
						$("#p_notify_url").val(data.data.notify_url);//这里告诉paypal付款的通信url,即当客户付款后调用这个url通知系统
						$("#p_image_url").val("https://www.paypal.com/en_US/i/btn/x-click-but23.gif");//如果没有则显示邮箱的账户
						document.forms["paypalsubmit"].submit();
					}
				});
			}
			$("#payWindow").window("close");
		}
	}

	function openImport(id, conferenceId, uploadUrl, fileName) {
		$("#hidTransConferenceId").val(conferenceId);
		$("#hidTransAttendenceId").val(id);
		if (uploadUrl != "") {
			$("#showTran").attr("src", uploadUrl);
			$("#txtTransferEvidenceFile").filebox("setText", fileName);
		} else {
			$("#showTran").attr("src", "");
			$("#txtTransferEvidenceFile").filebox("clear");
		}
		$("#transWindow").window("open");
	}

	function importData() {
		var conferenceId = $("#hidTransConferenceId").val();
		var id = $("#hidTransAttendenceId").val();
		var isValid = $("#importTransferEvidence").form("validate");
		var imgEnd = $("#txtTransferEvidenceFile").filebox("getText");
		if (isValid)
		{
			if (imgEnd!= "" && !/\.(gif|jpg|jpeg|png|GIF|JPG|PNG|JPEG)$/.test(imgEnd)) {
				common.showError("@Resources.MsgImgType");
				return false;
			} else {
				$("#importTransferEvidence").form({
					iframe: false,
					success: function (data) { }
				});

				$("#importTransferEvidence").form("submit", {
					url: "@Url.Action(nameof(ProfileAttendenceInfoController.Import), nameof(ProfileAttendenceInfoController).GetControllerName())",
					onSubmit: function (param) {
						param.random = Math.random();
					},
					success: function (data) {
						data = JSON.parse(data);
						if (data.result == "@ConstValues.AjaxFailResult") {
							common.showError(data.message,true);
						} else {
							common.showSuccess(data.message,true);
						}
						$("#transWindow").window("close");
						$("#dataGrid").datagrid("reload");
					},
				});
			}
		}
	}

	function showImg() {
		if ($("#showTran").attr("src") != "") {
			$("#showTran").click();
			$("#transWindow").window("close");
		}
	}

	function openVisa(id, conferenceId, hasVisa, sendStatus) {
		$("#hidVisaConferenceId").val(conferenceId);
		$("#hidVisaAttendenceId").val(id);
		$("#aVisa1").hide();
		$("#aVisa2").hide();
		$("#aVisa3").hide();

		if (sendStatus == "@ConstValues.SendStatus.已发送") {
			$("#aVisa1").show();
			$("#aVisa1").attr("href", "@Url.Action(nameof(ProfileAttendenceInfoController.DownloadInvitation),
					      nameof(ProfileAttendenceInfoController).GetControllerName())/" + id);
		} else if (hasVisa == "false") {
			$("#aVisa2").show();
		} else {
			$("#aVisa3").show();
		}
		$("#visaTitleWindow").window("open");
	}

	function checkVisaInfo(id, conferenceId) {
		$("#v-title").combobox({
			url: "@Url.Action(nameof(UtilityController.GetTitle), nameof(UtilityController).GetControllerName())" + "?conferenceId=" + conferenceId,
			valueField: "id",
			textField: "name",
			required: true,
			editable: false,
			panelHeight: "auto",
		});

		$("#v-country").combobox({
			url: "@Url.Action(nameof(UtilityController.GetCountryEn), nameof(UtilityController).GetControllerName())",
			valueField: "id",
			textField: "name",
			required: true,
		});

		var url = "@Url.Action(nameof(ProfileAttendenceInfoController.GetVisaInfoData),
				nameof(ProfileAttendenceInfoController).GetControllerName())" + "/" + id;
		$.get(url, null, function (data, textStatus, jqXHR) {
			if (data.result == "@ConstValues.AjaxFailResult") {
				$("#v-familyname").textbox("setValue", "");
				$("#v-firstname").textbox("setValue", "");
				$("#v-title").combobox("setValue", "");
				$("#v-country").combobox("setValue", "");
				$("#v-state").textbox("setValue", "");
				$("#v-city").textbox("setValue", "");
				$("#v-postcode").textbox("setValue", "");
				$("#v-affiliation").textbox("setValue", "");
				$("#v-address").textbox("setValue", "");
				$("#v-email").textbox("setValue", "");
				$("#v-telephone").textbox("setValue", "");
				$("#v-birthdate").datebox("setValue", "");
				$("#v-gender").textbox("setValue", "");
				$("#v-passportNum").textbox("setValue", "");
				$("#v-countryOfIssue").textbox("setValue", "");
				$("#v-issueDate").datebox("setValue", "");
				$("#v-expiryDate").datebox("setValue", "");
				$("#v-arrivalDate").datebox("setValue", "");
				$("#v-departuralDate").datebox("setValue", "");
				$("#v-remark").textbox("setValue", "");
				$("#saveVisa").show();
			} else {
				$("#v-familyname").textbox("setValue", data.data.familyName);
				$("#v-firstname").textbox("setValue", data.data.firstName);
				$("#v-title").combobox("setValue", data.data.title);
				$("#v-country").combobox("setValue", data.data.country);
				$("#v-state").textbox("setValue", data.data.stateStr);
				$("#v-city").textbox("setValue", data.data.cityStr);
				$("#v-postcode").textbox("setValue", data.data.zipCode);
				$("#v-affiliation").textbox("setValue", data.data.affiliation);
				$("#v-address").textbox("setValue", data.data.address);
				$("#v-email").textbox("setValue", data.data.mail);
				$("#v-telephone").textbox("setValue", data.data.telephone);
				$("#v-birthdate").datebox("setValue", data.data.birthdate);
				$("#v-gender").textbox("setValue", data.data.gender ? "Male" : "Female");
				$("#v-passportNum").textbox("setValue", data.data.passportNum);
				$("#v-countryOfIssue").textbox("setValue", data.data.issueOfCountry);
				$("#v-issueDate").datebox("setValue", data.data.dateOfIssue);
				$("#v-expiryDate").datebox("setValue", data.data.expiryDate);
				$("#v-arrivalDate").datebox("setValue", data.data.arrivalDate);
				$("#v-departuralDate").datebox("setValue", data.data.departuralDate);
				$("#v-remark").textbox("setValue", data.data.remark);

				if (data.data.sendStatus == "@ConstValues.SendStatus.未发送") {
					$("#saveVisa").show();
				} else {
					$("#saveVisa").hide();
				}
			};
		});
		$("#visaWindow").window("open");
		$("#visaTitleWindow").window("close");
	}

	function saveVisa() {
		var isValid = $("#frmVisa").form("validate");
		if (isValid) {
			$.messager.confirm("@Resources.Submit", "@Resources.CfmInvitate", function (r) {
				if (r) {
					var loading = layer.load(0,  {
						shade: [0.4,"#fff"]
					});
					$.post("@Url.Action(nameof(ProfileAttendenceInfoController.SaveVisa), nameof(ProfileAttendenceInfoController).GetControllerName())",
						$("#frmVisa").serialize(),
						function(data, textStatus, jqXHR) {
							layer.close(loading);
							if (data.result == "@ConstValues.AjaxFailResult") {
								common.showError(data.message);
							} else {
								common.showSuccess(data.message, true);
								$("#visaWindow").window("close");
								$("#dataGrid").datagrid("reload");
							}
						}
					);
				}
			})
		}
	}

	function checkInvoiceInfo(id) {
		var url = "@Url.Action(nameof(ProfileAttendenceInfoController.GetInvoiceInfoData),
				nameof(ProfileAttendenceInfoController).GetControllerName())" + "/" + id;
		$.get(url, null, function (data, textStatus, jqXHR) {
			if (data.result == "@ConstValues.AjaxFailResult") {
				common.showError(data.message);
			} else {
				$("#i-txtInvoiceTitle").combobox({
					url: "@Url.Action(nameof(UtilityController.GetInvoiceInfo), nameof(UtilityController).GetControllerName())",
					valueField: "invoiceTitle",
					textField: "invoiceTitle",
					panelHeight: "auto",
					hasDownArrow: false,
					onChange: function (n,o) {
						$("#i-txtTaxNum").textbox("setValue", "");
						$("#i-txtAddressAndTel").textbox("setValue", "");
						$("#i-txtBank").textbox("setValue", "");
						$("#i-txtBankAccount").textbox("setValue", "");
					},
					onSelect: function (rec) {
						$("#i-txtTaxNum").textbox("setValue", rec.taxNum);
						$("#i-txtAddressAndTel").textbox("setValue", rec.addressAndTel);
						$("#i-txtBank").textbox("setValue", rec.bank);
						$("#i-txtBankAccount").textbox("setValue", rec.bankAccount);
					},
					onLoadSuccess: function(data) {
						orgCount = data.length;
					},
					onShowPanel: function () {
						if (orgCount < 10) {
							$(this).combobox("panel").height("auto");
						} else {
							$(this).combobox("panel").height(200);
						}
					},
					onHidePanel: function () { }
				});

				if (data.data.hasInvoiced == "未开票") {
					$("#i-txtInvoiceTitle").combobox({ disabled: false });
					$("#i-txtTaxNum").textbox({ disabled: false });
					$("#i-txtAddressAndTel").textbox({ disabled: false });
					$("#i-txtBank").textbox({ disabled: false });
					$("#i-txtBankAccount").textbox({ disabled: false });
					$("#trMsg").hide();
				} else {
					$("#i-txtInvoiceTitle").combobox({ disabled: true });
					$("#i-txtTaxNum").textbox({ disabled: true });
					$("#i-txtAddressAndTel").textbox({ disabled: true });
					$("#i-txtBank").textbox({ disabled: true });
					$("#i-txtBankAccount").textbox({ disabled: true });
					$("#trMsg").show();
				}

				$("#hidInvAttendenceId").val(id);
				$("#i-txtInvoiceTitle").combobox("setValue", data.data.invoiceTitle);
				$("#i-txtInvoiceTitle").combobox("setText", data.data.invoiceTitle);
				$("#i-txtTaxNum").textbox("setValue",data.data.taxNum);
				$("#i-txtAddressAndTel").textbox("setValue",data.data.addressAndTel);
				$("#i-txtBank").textbox("setValue",data.data.bank);
				$("#i-txtBankAccount").textbox("setValue",data.data.bankAccount);

				$("#i-txtInvoiceAddress").textbox("setValue",data.data.invoiceAddress);
				$("#i-txtInvoiceReceive").textbox("setValue",data.data.invoiceReceive);
				$("#i-txtInvoiceTel").textbox("setValue",data.data.invoiceTel);
				$("#i-txtInvoiceMail").textbox("setValue",data.data.invoiceMail);

				$("span[id='i-invoiceStatus']").html(data.data.hasInvoiced);
				$("span[id='i-invoiceType']").html(data.data.invoiceType);
				$("span[id='i-invoiceClass']").html(data.data.invoiceClass);
				$("span[id='i-invoiceDate']").html(data.data.invoiceDate);
				$("span[id='i-invoiceCode']").html(data.data.invoiceCode);
				$("span[id='i-invoiceNum']").html(data.data.invoiceNum);
				$("span[id='i-invoiceAmount']").html(data.data.invoiceAmount);
				$("span[id='i-invoiceExpress']").html(data.data.invoiceExpress);

				$("#invoiceWindow").window("open");
			};
		});
	}

	function saveInvoice() {
		var isValid = $("#frmInvoice").form("validate");
		if (isValid) {
			var confirmMessage = "@Resources.CfmSave";
			$.messager.confirm("@Resources.Submit", confirmMessage, function (r) {
				if (r) {
					var loading = layer.load(0,  {
						shade: [0.4,"#fff"]
					});
					$.post("@Url.Action(nameof(ProfileAttendenceInfoController.SaveInvoiceInfo),
							nameof(ProfileAttendenceInfoController).GetControllerName())",
							$("#frmInvoice").serialize(),
						function(data, textStatus, jqXHR) {
							layer.close(loading);
							if (data.result == "@ConstValues.AjaxFailResult") {
								common.showError(data.message);
							} else {
								common.showSuccess(data.message, true);
								$("#invoiceWindow").window("close");
								$("#dataGrid").datagrid("reload");
							}
						}
					);
				}
			})
		}
	}

	function showPersonalData(id, conferenceName, conferenceId) {
		$("#personalWindowTitle").text("@Resources.ConferenceName："+conferenceName);
		var url = "@Url.Action(nameof(UtilityController.GetPersonalData),
				nameof(UtilityController).GetControllerName())" + "?id="+id;
		$.get(encodeURI(url), null, function (data, textStatus, jqXHR) {
			if (data.result == "@ConstValues.AjaxFailResult") {
				common.showError(data.message,true);
			} else {
				$("span[id='attendid']").html(data.data.attendid);
				$("span[id='attendenceIdentity']").html(data.data.attendenceIdentity);
				$("span[id='fullNamePersonal']").html(data.data.fullname);
				$("#qrCode").attr("src", "@Url.Action(nameof(UtilityController.QrCodeImg),
						nameof(UtilityController).GetControllerName())" + "/" + data.data.id);
				$("span[id='essayPersonal']").html(data.data.essay);
				$("span[id='mailPersonal']").html(data.data.mail);
				$("span[id='affiliationPersonal']").html(data.data.affiliation);
				$("span[id='telePersonal']").html(data.data.tele);
				$("span[id='countryPersonal']").html(data.data.country);
				$("span[id='addressPersonal']").html(data.data.address);
				$("span[id='feePersonal']").html(data.data.fee);
				if (null != data.data.payType && "" != data.data.payType) {
					$("span[id='paidTypePersonal']").html(data.data.payType);
				} else {
					$("span[id='paidTypePersonal']").html("@Resources.HasNotPaid");
				}
				$("span[id='otherRemarkPersonal']").html(data.data.remark);
				$("span[id='paymentHasPay']").html(data.data.paymentHasPay);
				$("span[id='invoiceTitleForPersonal']").html(data.data.invoiceTitle);
				$("span[id='TaxNumForPersonal']").html(data.data.taxNum);
				$("span[id='AddressAndMobileForPersonal']").html(data.data.addressAndTel);
				$("span[id='BankAndAccountForPersonal']").html(data.data.bankAndAccount);
				$("span[id='InvoiceNumForPersonal']").html(data.data.invoiceNum);
				$("span[id='hasPaidForPersonal']").html(data.data.hasPaid);
				$("span[id='essayIdForPersonal']").html(data.data.essay);
				$("span[id='reportIdForPersonal']").html(data.data.reportId);
				document.getElementById("paymentDetailForPersonal").innerText=data.data.feeDetail;
				$("span[id='payDateForPersonal']").html(data.data.paymentTime);

				$("#trCustomizeList").attr("style","display:none");
				$("#trCustomize1").attr("style","display:none");
				$("#trCustomize2").attr("style","display:none");
				$("#trCustomize3").attr("style","display:none");
				$("#trCustomize4").attr("style","display:none");
				$("#trCustomize5").attr("style","display:none");
				$("#trCustomize6").attr("style","display:none");
				$("#trCustomize7").attr("style","display:none");
				$("#trCustomize8").attr("style","display:none");
				$("#trCustomize9").attr("style","display:none");
				$("#trCustomize10").attr("style","display:none");

				$.get("@Url.Action(nameof(UtilityController.GetCustomizeList),
					nameof(UtilityController).GetControllerName())" + "?conferenceId="+conferenceId, null, function (dt, textStatus, jqXHR) {
					if (dt.data.length > 0) {
						$("#trCustomizeList").attr("style","display:blank");
						$("span[id='spCustomize1']").html(data.data.customize1);
						$("span[id='spCustomize2']").html(data.data.customize2);
						$("span[id='spCustomize3']").html(data.data.customize3);
						$("span[id='spCustomize4']").html(data.data.customize4);
						$("span[id='spCustomize5']").html(data.data.customize5);
						$("span[id='spCustomize6']").html(data.data.customize6);
						$("span[id='spCustomize7']").html(data.data.customize7);
						$("span[id='spCustomize8']").html(data.data.customize8);
						$("span[id='spCustomize9']").html(data.data.customize9);
						$("span[id='spCustomize10']").html(data.data.customize10);

						for (var index = 1; index <= dt.data.length; index++) {
							$("#tr"+dt.data[index - 1].key).attr("style","display:blank");
							$("#td"+dt.data[index - 1].key).html(dt.data[index - 1].displayName);
						}
					}
				});

				$("#personalWindow").window("open");
			}
		});
	}
</script>
}